mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
fix(treesitter): document more standard highlight groups
Problem: Not all standard treesitter groups are documented. Solution: Document them all (without relying on fallback); add default link for new `*.builtin` groups to `Special` and `@keyword.type` to `Structure`. Remove `@markup.environment.*` which only made sense for LaTeX.
This commit is contained in:
@@ -197,14 +197,14 @@ func Test_syntax_completion()
|
||||
" Check that clearing "Aap" avoids it showing up before Boolean.
|
||||
hi @Aap ctermfg=blue
|
||||
call feedkeys(":syn list \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||
call assert_match('^"syn list @Aap @attribute @boolean @character ', @:)
|
||||
call assert_match('^"syn list @Aap @attribute @attribute.builtin @boolean @character ', @:)
|
||||
hi clear @Aap
|
||||
|
||||
call feedkeys(":syn list \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||
call assert_match('^"syn list @attribute @boolean @character ', @:)
|
||||
call assert_match('^"syn list @attribute @attribute.builtin @boolean @character ', @:)
|
||||
|
||||
call feedkeys(":syn match \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||
call assert_match('^"syn match @attribute @boolean @character ', @:)
|
||||
call assert_match('^"syn match @attribute @attribute.builtin @boolean @character ', @:)
|
||||
|
||||
syn cluster Aax contains=Aap
|
||||
call feedkeys(":syn list @A\<C-A>\<C-B>\"\<CR>", 'tx')
|
||||
|
Reference in New Issue
Block a user