Commit Graph

97 Commits

Author SHA1 Message Date
lilydjwg
35841908e4 move {{ and }} matching so that it gets highlighted correctly 2017-07-28 19:14:08 +02:00
nfnty
3a6000e560 Fix exponent operator error highlighting
Fixes #25
2017-05-21 12:08:19 +02:00
nfnty
ea34354750 syntax: Implement raw format strings
Fixes #21
2017-03-18 16:02:59 +01:00
nfnty
26f711e9cd syntax: Fix pythonRawBytes prefix 2017-03-18 15:45:04 +01:00
nfnty
d1b4de242b Fix operator error highlighting for = prefix
Fixes #20
2017-03-15 13:25:42 +01:00
nfnty
aacf27d1a3 Implement option to disable highlighting builtin functions as kwarg
Fixes #17
2017-03-05 10:41:45 +01:00
Antony Lee
453162092e syntax: Fix string formatting highlight for byte strings 2017-03-04 23:03:55 +01:00
nfnty
e036a4c41a Be explicit about builtin functions 2017-03-04 22:55:21 +01:00
Antony Lee
95fcb49f5b syntax: cmp is not a builtin function in Python 3 2017-03-04 22:53:18 +01:00
nfnty
0959f6d130 Do not error highlight PEP 3017 operator
Fixes #11
2017-02-27 00:11:03 +01:00
nfnty
c85d026015 Update statements and functions 2017-02-26 23:35:41 +01:00
nfnty
26f2a6beb8 syntax: Remove pythonIdentifier 2017-02-26 10:03:39 +01:00
monkoose
941b582782 syntax: Fix unicode function names 2017-02-26 10:03:30 +01:00
nfnty
39ba0d8a04 Fix operators <<= and >>= 2017-02-24 22:55:41 +01:00
nfnty
f7105bd860 Impplement operator highlighting
Fixes #7
Closes #9
2017-02-24 13:55:46 +01:00
nfnty
51ea0dab84 syntax: Remove pythonFunctionArgs as it's poorly implemented 2017-02-24 12:50:51 +01:00
nfnty
c8300301fb Highlight builtin functions without braces 2017-02-24 10:53:02 +01:00
nfnty
013c9ff33f syntax: Fix function args 2017-02-23 08:21:16 +01:00
monkoose
5ffc69c38f Add option variable for class variables 2017-02-23 07:50:31 +01:00
nfnty
4eee0bdaa1 syntax: Remove duplicate yield
Fixes #6
2017-02-21 23:24:01 +01:00
nfnty
d7c1b4a9cd syntax: Skip escaped triple quotes 2017-02-21 17:36:34 +01:00
nfnty
f5b242e57b syntax: Combine regexes
Improves performance
2017-02-21 17:24:11 +01:00
nfnty
750e4f1d67 syntax: Remove duplicate line, Minor reorder 2017-02-21 16:50:45 +01:00
nfnty
8f6af03977 syntax: Remove unneeded capture groups, Always use non-capture 2017-02-21 16:46:11 +01:00
nfnty
51f3be4ec0 syntax: (\.)@<! -> \.@<! 2017-02-21 16:36:47 +01:00
nfnty
82836bb811 Move comment to right position 2017-02-19 13:40:57 +01:00
nfnty
08324146d4 pythonClassVaraible -> pythonClassVariable
Fixes #4
2017-02-19 12:37:14 +01:00
lilydjwg
47e958df05 align strings, remove tabs 2017-02-17 16:41:58 +08:00
lilydjwg
f8d6b63f95 support underscores in numbers
mostly taken from https://github.com/hdima/python-syntax/pull/60
2017-02-17 16:14:49 +08:00
lilydjwg
f6aa2f6cae better f-strings highlighting
Taken from https://github.com/hdima/python-syntax/pull/60
2017-02-17 16:14:49 +08:00
lilydjwg
8cc1bbb295 narrow decorator match to exclude matrix multiplication
from hdima/python-syntax#47
2017-02-17 16:14:49 +08:00
nfnty
3c615fb1c7 syntax: FunctionParameters: Don't include the parentheses in the match
Fixes problem with Rainbow parentheses
2017-02-16 23:00:13 +01:00
nfnty
b9b0a787cf Remove docs from syntax file 2017-02-16 22:15:09 +01:00
nfnty
b3c219a6e2 Add AUTHORS file 2017-02-16 18:48:56 +01:00
nfnty
dec4b0814e linting with vint 2017-02-16 18:39:19 +01:00
nfnty
bb5058fd7f Update links 2017-02-16 18:14:13 +01:00
Michael Doronin
b4466414b5 None is highlighted as constant value (which it is in python3) 2017-01-26 15:41:11 +03:00
Michael Doronin
0b6be3fbc8 python 3.6 formatted string literals support 2017-01-09 13:03:47 +03:00
Michael Doronin
023fbd2a4a keyword arguments names highlighted in exception constuctor calls 2016-12-27 09:55:01 +03:00
Michael Doronin
3685b31169 Exceptions highlighted only if no dot is before them 2016-12-26 22:50:05 +03:00
Michael Doronin
41efca646e simplified rules for yield, yield from, from * import 2016-12-08 12:55:36 +03:00
Michael Doronin
8db44e7a57 now from from import in highlighted as import and as keyword in `raise
from`
2016-12-07 22:19:28 +03:00
Michael Doronin
752a19fa97 keyword arguments in decorators 2016-11-24 12:47:29 +03:00
Michael Doronin
b8f13b83fe added keyword arguments highlight to builtin functions 2016-11-23 17:05:44 +03:00
Michael Doronin
0a240893e8 from highlighted in imports but not in yield from (not sure how this
works)
2016-11-23 12:58:23 +03:00
Michael Doronin
f3bd1e155f Merge branch 'master' of https://github.com/purpleP/python-syntax 2016-11-23 12:26:29 +03:00
Michael Doronin
3422bbab29 addition 2016-11-23 12:22:29 +03:00
Michael Doronin
7d63a53598 highlight yield from as a keyword and await only if it is a keyword 2016-11-23 12:21:03 +03:00
Michael Doronin
3ef357e3ba keyword arguments highlighted inside of builtin object constructors 2016-11-21 16:04:13 +03:00
Michael Doronin
bbed018050 keyword arguments and optional parameters are only highlighted inside
actual function calls and function defenitions
2016-11-19 13:00:07 +03:00