Fix bugs in syntax files

Fix various bugs in syntax files.
Add c++ syntax file.
Only save last line's endstate in highlight function.
This commit is contained in:
Zachary Yedidia
2017-02-18 09:45:07 -05:00
parent 076e9c1634
commit b604855378
15 changed files with 83 additions and 35 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ rules:
# decorators
- brightgreen: "@.*[(]"
# operators
- statement: "[.:;,+*|=!\\%@]" "<" ">" "/" "-" "&"
- statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
# parentheses
- statement: "[(){}]" "\\[" "\\]"
- statement: "([(){}]|\\[|\\])"
# numbers
- constant.number: "\\b[0-9]+\\b"