From 12b054b05fba9ae7188751cf07e23dacd414a744 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 9 Jan 2023 23:31:04 +0900 Subject: neovim:treesitter: fix highlight of undefined in typescript --- .config/nvim/after/queries/php/highlights.scm | 1 + .config/nvim/after/queries/typescript/highlights.scm | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .config/nvim/after/queries/typescript/highlights.scm 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 -- cgit v1.2.3-70-g09d2