@ -26,62 +26,62 @@ if the key contains a dot `'.'`, it must be quoted to prevent it being parsed as
Possible modifiers:
Possible modifiers:
| modifier |
| Modifier |
| --- |
| --- |
| bold |
| `bold` |
| dim |
| `dim` |
| italic |
| `italic` |
| underlined |
| `underlined` |
| slow\_blink |
| `slow\_blink` |
| rapid\_blink |
| `rapid\_blink` |
| reversed |
| `reversed` |
| hidden |
| `hidden` |
| crossed\_out |
| `crossed\_out` |
Possible keys:
Possible keys:
| key | notes |
| Key | Notes |
| --- | --- |
| --- | --- |
| attribute | |
| `attribute` | |
| keyword | |
| `keyword` | |
| keyword.directive | preprocessor directives (\#if in C) |
| `keyword.directive` | Preprocessor directives (\#if in C) |
| namespace | |
| `namespace` | |
| punctuation | |
| `punctuation` | |
| punctuation.delimiter | |
| `punctuation.delimiter` | |
| operator | |
| `operator` | |
| special | |
| `special` | |
| property | |
| `property` | |
| variable | |
| `variable` | |
| variable.parameter | |
| `variable.parameter` | |
| type | |
| `type` | |
| type.builtin | |
| `type.builtin` | |
| constructor | |
| `constructor` | |
| function | |
| `function` | |
| function.macro | |
| `function.macro` | |
| function.builtin | |
| `function.builtin` | |
| comment | |
| `comment` | |
| variable.builtin | |
| `variable.builtin` | |
| constant | |
| `constant` | |
| constant.builtin | |
| `constant.builtin` | |
| string | |
| `string` | |
| number | |
| `number` | |
| escape | escaped characters |
| `escape` | Escaped characters |
| label | used for lifetimes |
| `label` | For lifetimes |
| module | |
| `module` | |
| ui.background | |
| `ui.background` | |
| ui.linenr | |
| `ui.linenr` | |
| ui.statusline | |
| `ui.statusline` | |
| ui.popup | |
| `ui.popup` | |
| ui.window | |
| `ui.window` | |
| ui.help | |
| `ui.help` | |
| ui.text | |
| `ui.text` | |
| ui.text.focus | |
| `ui.text.focus` | |
| ui.menu.selected | |
| `ui.menu.selected` | |
| ui.selection | for selections in the editing area |
| `ui.selection` | For selections in the editing area |
| warning | LSP warning |
| `warning` | LSP warning |
| error | LSP error |
| `error` | LSP error |
| info | LSP info |
| `info` | LSP info |
| hint | LSP hint |
| `hint` | LSP hint |
These keys match [tree-sitter scopes](https://tree-sitter.github.io/tree-sitter/syntax-highlighting#theme). We half-follow the common scopes from [macromates language grammars](https://macromates.com/manual/en/language_grammars) with some differences.
These keys match [tree-sitter scopes](https://tree-sitter.github.io/tree-sitter/syntax-highlighting#theme). We half-follow the common scopes from [macromates language grammars](https://macromates.com/manual/en/language_grammars) with some differences.