mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-02 07:07:15 -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:
@@ -6,7 +6,7 @@ detect:
|
||||
|
||||
rules:
|
||||
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
|
||||
- constant.number: "\\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
||||
- constant: "\\b(null)\\b"
|
||||
- constant: "\\b(true|false)\\b"
|
||||
|
||||
Reference in New Issue
Block a user