]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/python3.yaml
Merge pull request #1220 from yvendruscolo/patch-1
[micro.git] / runtime / syntax / python3.yaml
index 326024850f372013beaa0553b437dc9996812bc8..8ea928b4301e959aa36dfa8ddf1a3f7f3abbd8b5 100644 (file)
@@ -16,15 +16,15 @@ 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
-    - statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
+    - symbol.operator: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
       # parentheses
-    - statement: "([(){}]|\\[|\\])"
+    - symbol.brackets: "([(){}]|\\[|\\])"
       # numbers
     - constant.number: "\\b[0-9]+\\b"