From 4120576b40d09a3434c9ed5e323b3a37bb45be2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D0=BC=D1=91=D0=BD=20=D0=9C=D0=B0=D1=80=D1=8C?= =?UTF-8?q?=D1=8F=D1=81=D0=B8=D0=BD?= Date: Fri, 1 Dec 2017 23:52:13 +0300 Subject: Python lexer: recognize python3's async/await keywords --- lua/lexers/python.lua | 1 + 1 file changed, 1 insertion(+) 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', -- cgit v1.2.3