aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorСемён Марьясин <simeon@maryasin.name>2017-12-01 23:52:13 +0300
committerGitHub <noreply@github.com>2017-12-01 23:52:13 +0300
commit4120576b40d09a3434c9ed5e323b3a37bb45be2e (patch)
tree6532d523f846f1dbf84e4ba3572eadc6f430e24f
parentc00ef937ac0e6bc6391f973783e900ff5691f4c3 (diff)
downloadvis-4120576b40d09a3434c9ed5e323b3a37bb45be2e.tar.gz
vis-4120576b40d09a3434c9ed5e323b3a37bb45be2e.tar.xz
Python lexer: recognize python3's async/await keywords
-rw-r--r--lua/lexers/python.lua1
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',