mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Add paren highlighting for js and update runtime
This commit is contained in:
parent
f3a30412f4
commit
ea6012922f
2 changed files with 13 additions and 7 deletions
File diff suppressed because one or more lines are too long
|
|
@ -8,6 +8,12 @@ rules:
|
|||
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
||||
- identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
||||
- symbol.brackets: "(\\{|\\})"
|
||||
- symbol.brackets: "(\\(|\\))"
|
||||
- symbol.brackets: "(\\[|\\])"
|
||||
- symbol.brackets: "(\\{|\\})"
|
||||
- symbol.brackets: "(\\(|\\))"
|
||||
- symbol.brackets: "(\\[|\\])"
|
||||
- statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b"
|
||||
- statement: "\\b(for|function|class|extends|get|if|in|instanceof|new|return|set|switch)\\b"
|
||||
- statement: "\\b(switch|this|throw|try|typeof|var|const|let|void|while|with)\\b"
|
||||
|
|
|
|||
Loading…
Reference in a new issue