diff options
| author | Семён Марьясин <simeon@maryasin.name> | 2017-12-01 23:52:13 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-01 23:52:13 +0300 |
| commit | 4120576b40d09a3434c9ed5e323b3a37bb45be2e (patch) | |
| tree | 6532d523f846f1dbf84e4ba3572eadc6f430e24f /lua/lexers/python.lua | |
| parent | c00ef937ac0e6bc6391f973783e900ff5691f4c3 (diff) | |
| download | vis-4120576b40d09a3434c9ed5e323b3a37bb45be2e.tar.gz vis-4120576b40d09a3434c9ed5e323b3a37bb45be2e.tar.xz | |
Python lexer: recognize python3's async/await keywords
Diffstat (limited to 'lua/lexers/python.lua')
| -rw-r--r-- | lua/lexers/python.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/lexers/python.lua b/lua/lexers/python.lua index 15d1684..63e2e82 100644 --- a/lua/lexers/python.lua +++ b/lua/lexers/python.lua @@ -33,6 +33,7 @@ local number = token(l.NUMBER, l.float + integer) -- Keywords. local keyword = token(l.KEYWORD, word_match{ + 'async', 'await', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'print', 'raise', |
