diff options
| author | Tim Hatch <tim@timhatch.com> | 2015-10-13 11:32:25 -0700 |
|---|---|---|
| committer | Tim Hatch <tim@timhatch.com> | 2015-10-13 11:32:25 -0700 |
| commit | 27e304015dc3882ddb59122e168765775fb0e014 (patch) | |
| tree | 0e34b7e356cc461ad1c8686b80224701907e6121 /pygments/lexers/python.py | |
| parent | 9387070c755ac993b8ef5ff807c91d91461bcae8 (diff) | |
| parent | 30ed00b906b25fb04374bc507ba3ca0d627fa753 (diff) | |
| download | pygments-27e304015dc3882ddb59122e168765775fb0e014.tar.gz | |
Merged in jakepetroules/pygments-main/qbs (pull request #474)
Add support for highlighting Qbs files.
Diffstat (limited to 'pygments/lexers/python.py')
| -rw-r--r-- | pygments/lexers/python.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 49c15b6d..ea97b855 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -215,10 +215,10 @@ class Python3Lexer(RegexLexer): tokens = PythonLexer.tokens.copy() tokens['keywords'] = [ (words(( - 'assert', 'break', 'continue', 'del', 'elif', 'else', 'except', - 'finally', 'for', 'global', 'if', 'lambda', 'pass', 'raise', - 'nonlocal', 'return', 'try', 'while', 'yield', 'yield from', 'as', - 'with'), suffix=r'\b'), + 'assert', 'async', 'await', 'break', 'continue', 'del', 'elif', + 'else', 'except', 'finally', 'for', 'global', 'if', 'lambda', 'pass', + 'raise', 'nonlocal', 'return', 'try', 'while', 'yield', 'yield from', + 'as', 'with'), suffix=r'\b'), Keyword), (words(( 'True', 'False', 'None'), suffix=r'\b'), @@ -272,6 +272,7 @@ class Python3Lexer(RegexLexer): tokens['backtick'] = [] tokens['name'] = [ (r'@\w+', Name.Decorator), + (r'@', Operator), # new matrix multiplication operator (uni_name, Name), ] tokens['funcname'] = [ |
