mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
add TSNone
This commit is contained in:
parent
bfdee5658a
commit
71ba2afc70
3 changed files with 6 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ hlmap["text.title"] = "TSTitle"
|
||||||
hlmap["text.literal"] = "TSLiteral"
|
hlmap["text.literal"] = "TSLiteral"
|
||||||
hlmap["text.uri"] = "TSURI"
|
hlmap["text.uri"] = "TSURI"
|
||||||
|
|
||||||
|
hlmap["none"] = "TSNone"
|
||||||
|
|
||||||
function M.attach(bufnr, lang)
|
function M.attach(bufnr, lang)
|
||||||
local lang = lang or parsers.get_buf_lang(bufnr)
|
local lang = lang or parsers.get_buf_lang(bufnr)
|
||||||
local config = configs.get_module('highlight')
|
local config = configs.get_module('highlight')
|
||||||
|
|
|
||||||
|
|
@ -67,3 +67,5 @@ highlight default TSUnderline term=underline cterm=underline gui=underline
|
||||||
highlight default link TSTitle Title
|
highlight default link TSTitle Title
|
||||||
highlight default link TSLiteral String
|
highlight default link TSLiteral String
|
||||||
highlight default link TSURI Underlined
|
highlight default link TSURI Underlined
|
||||||
|
|
||||||
|
highlight default TSNone term=none cterm=none gui=none guifg=none guibg=none
|
||||||
|
|
|
||||||
|
|
@ -8,3 +8,5 @@
|
||||||
(jsx_closing_element name: (identifier) @variable.builtin)
|
(jsx_closing_element name: (identifier) @variable.builtin)
|
||||||
(jsx_opening_element name: (identifier) @variable.builtin)
|
(jsx_opening_element name: (identifier) @variable.builtin)
|
||||||
(jsx_self_closing_element name: (identifier) @variable.builtin)
|
(jsx_self_closing_element name: (identifier) @variable.builtin)
|
||||||
|
|
||||||
|
(jsx_text) @none
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue