diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-01-09 23:31:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-01-09 23:31:04 +0900 |
| commit | 12b054b05fba9ae7188751cf07e23dacd414a744 (patch) | |
| tree | b6a6c6a932ecd86a8c67ea0b2e4203b532a5fcb8 | |
| parent | 7e6730f2c6b3a8ae43054459a63784d7314ed590 (diff) | |
| download | dotfiles-12b054b05fba9ae7188751cf07e23dacd414a744.tar.gz dotfiles-12b054b05fba9ae7188751cf07e23dacd414a744.tar.zst dotfiles-12b054b05fba9ae7188751cf07e23dacd414a744.zip | |
neovim:treesitter: fix highlight of undefined in typescript
| -rw-r--r-- | .config/nvim/after/queries/php/highlights.scm | 1 | ||||
| -rw-r--r-- | .config/nvim/after/queries/typescript/highlights.scm | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/after/queries/php/highlights.scm b/.config/nvim/after/queries/php/highlights.scm index 12a652e..9eedf64 100644 --- a/.config/nvim/after/queries/php/highlights.scm +++ b/.config/nvim/after/queries/php/highlights.scm @@ -1,3 +1,4 @@ ;; extends + "$" @variable (php_tag) @function.macro diff --git a/.config/nvim/after/queries/typescript/highlights.scm b/.config/nvim/after/queries/typescript/highlights.scm new file mode 100644 index 0000000..895e1c3 --- /dev/null +++ b/.config/nvim/after/queries/typescript/highlights.scm @@ -0,0 +1,6 @@ +;; extends + +;; Undefined is highlighted as @variable.builtin by default. Strictly +;; speaking, it is not a reserved word and just a built-in variable, +;; but no one re-assign it. +(undefined) @constant.builtin |
