mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Introduce storage highlighting for typescript/javascript (#2961)
This commit is contained in:
parent
e35abe38f3
commit
230ba264bf
@ -151,7 +151,9 @@ #### Syntax highlighting
|
||||
- `operator` - `or`, `in`
|
||||
- `directive` - Preprocessor directives (`#if` in C)
|
||||
- `function` - `fn`, `func`
|
||||
- `storage` - Keywords that affect the storage of a variable, function or data structure `static`, `mut`, `const`, `ref`
|
||||
- `storage` - Keywords describing how things are stored
|
||||
- `type` - The type of something, `class`, `function`, `var`, `let`, etc.
|
||||
- `modifier` - Storage modifiers like `static`, `mut`, `const`, `ref`, etc.
|
||||
|
||||
- `operator` - `||`, `+=`, `>`
|
||||
|
||||
|
@ -163,19 +163,14 @@
|
||||
[
|
||||
"as"
|
||||
"async"
|
||||
"class"
|
||||
"const"
|
||||
"debugger"
|
||||
"delete"
|
||||
"export"
|
||||
"extends"
|
||||
"from"
|
||||
"function"
|
||||
"get"
|
||||
"import"
|
||||
"in"
|
||||
"instanceof"
|
||||
"let"
|
||||
"new"
|
||||
"of"
|
||||
"set"
|
||||
@ -183,11 +178,17 @@
|
||||
"target"
|
||||
"try"
|
||||
"typeof"
|
||||
"var"
|
||||
"void"
|
||||
"with"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"class"
|
||||
"let"
|
||||
"const"
|
||||
"var"
|
||||
] @keyword.storage.type
|
||||
|
||||
[
|
||||
"switch"
|
||||
"case"
|
||||
@ -206,3 +207,9 @@
|
||||
"do"
|
||||
"await"
|
||||
] @keyword.control
|
||||
|
||||
[
|
||||
"import"
|
||||
"export"
|
||||
] @keyword.control.import
|
||||
|
||||
|
@ -22,15 +22,21 @@
|
||||
[
|
||||
"abstract"
|
||||
"declare"
|
||||
"enum"
|
||||
"export"
|
||||
"implements"
|
||||
"interface"
|
||||
"keyof"
|
||||
"namespace"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"type"
|
||||
"interface"
|
||||
"enum"
|
||||
] @keyword.storage.type
|
||||
|
||||
[
|
||||
"public"
|
||||
"private"
|
||||
"protected"
|
||||
"public"
|
||||
"type"
|
||||
"readonly"
|
||||
] @keyword
|
||||
] @keyword.storage.modifier
|
Loading…
Reference in New Issue
Block a user