add JSON-defined syntax highlighting in dynamic highlighter
This commit is contained in:
parent
daa35af5b9
commit
7fa202ac5f
3 changed files with 26 additions and 79 deletions
|
@ -17,9 +17,9 @@
|
|||
{ "regex": "0[xX][0-9a-fA-F_]+n?", "is": "literal" },
|
||||
{ "regex": "[0-9_]+n", "is": "literal" },
|
||||
{ "regex": "[0-9_]+(\\.[0-9_]*([eE][-+]?[0-9_]+)?)?", "is": "literal" },
|
||||
{ "regex": "'(\\'|[^'])*'", "is": "string" },
|
||||
{ "regex": "\"(\\\"|[^\"])*\"", "is": "string" },
|
||||
{ "regex": "`(\\`|[^`])*`", "is": "string" },
|
||||
{ "regex": "'(\\\\'|[^'])*'", "is": "string" },
|
||||
{ "regex": "\"(\\\\\"|[^\"])*\"", "is": "string" },
|
||||
{ "regex": "`(\\\\`|[^`])*`", "is": "string" },
|
||||
{ "regex": "[+=/*^%<>!~|&\\.?:-]+", "is": "operator" },
|
||||
{ "regex": "[,;]", "is": "punct" }
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue