mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
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:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user