diff --git a/syntax_files/python2.yaml b/syntax_files/python2.yaml index 68e0424..a28b81b 100644 --- a/syntax_files/python2.yaml +++ b/syntax_files/python2.yaml @@ -55,4 +55,3 @@ rules: start: "#" end: "$" rules: [] - diff --git a/syntax_files/python3.yaml b/syntax_files/python3.yaml index 6b15572..8c200cd 100644 --- a/syntax_files/python3.yaml +++ b/syntax_files/python3.yaml @@ -16,9 +16,9 @@ rules: # types - type: "\\b(bool|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|int|list|map|memoryview|object|property|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip)\\b" # definitions - - identifier: "def [a-zA-Z_0-9]+" + - identifier: "def [a-zA-Z_0-9]+" # keywords - - statement: "\\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b" + - statement: "\\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b" # decorators - brightgreen: "@.*[(]" # operators