Merge pull request #1205 from kylebarron/python-syntax-fixes

Use symbol.operator and symbol.brackets scopes correctly in Python syntax file
This commit is contained in:
Zachary Yedidia
2018-12-10 14:28:21 -05:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -23,9 +23,9 @@ rules:
# decorators # decorators
- brightgreen: "@.*[(]" - brightgreen: "@.*[(]"
# operators # operators
- statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)" - symbol.operator: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
# parentheses # parentheses
- statement: "([(){}]|\\[|\\])" - symbol.brackets: "([(){}]|\\[|\\])"
# numbers # numbers
- constant.number: "\\b[0-9]+\\b" - constant.number: "\\b[0-9]+\\b"

View File

@@ -22,9 +22,9 @@ rules:
# decorators # decorators
- brightgreen: "@.*[(]" - brightgreen: "@.*[(]"
# operators # operators
- statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)" - symbol.operator: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
# parentheses # parentheses
- statement: "([(){}]|\\[|\\])" - symbol.brackets: "([(){}]|\\[|\\])"
# numbers # numbers
- constant.number: "\\b[0-9]+\\b" - constant.number: "\\b[0-9]+\\b"