X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fpython2.yaml;h=1058ea5a7b14cf4edffb644dd0f0a3824f445232;hb=cef32d4ac7f7bbc1f57fc67f8a1788edddfbe771;hp=bddf66dcca974dac371490a38fa5745fa95272ab;hpb=2fcb40d5a9f505e39519fd5c32e3754cd0e83dd5;p=micro.git diff --git a/runtime/syntax/python2.yaml b/runtime/syntax/python2.yaml index bddf66dc..1058ea5a 100644 --- a/runtime/syntax/python2.yaml +++ b/runtime/syntax/python2.yaml @@ -23,21 +23,33 @@ rules: # decorators - brightgreen: "@.*[(]" # operators - - statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)" + - symbol.operator: "([.:;,+*|=!\\%@]|<|>|/|-|&)" # parentheses - - statement: "([(){}]|\\[|\\])" + - symbol.brackets: "([(){}]|\\[|\\])" # numbers - constant.number: "\\b[0-9]+\\b" + - constant.string: + start: "\"\"\"" + end: "\"\"\"" + rules: [] + + - comment: + start: "'''" + end: "'''" + rules: [] + - constant.string: start: "\"" end: "\"" + skip: "\\\\." rules: - constant.specialChar: "\\\\." - constant.string: start: "'" end: "'" + skip: "\\\\." rules: - constant.specialChar: "\\\\." @@ -46,12 +58,3 @@ rules: end: "$" rules: [] - - comment: - start: "\"\"\"" - end: "\"\"\"" - rules: [] - - - comment: - start: "'''" - end: "'''" - rules: []