mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 12:56:27 -04:00
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:
@@ -22,9 +22,9 @@ rules:
|
||||
# decorators
|
||||
- brightgreen: "@.*[(]"
|
||||
# operators
|
||||
- statement: "[.:;,+*|=!\\%@]" "<" ">" "/" "-" "&"
|
||||
- statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
|
||||
# parentheses
|
||||
- statement: "[(){}]" "\\[" "\\]"
|
||||
- statement: "([(){}]|\\[|\\])"
|
||||
# numbers
|
||||
- constant.number: "\\b[0-9]+\\b"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user