mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
fix(highlights): section headings in ini, git_config editorconfig (#7108)
Section headers should be `@markup.heading` in ini-like grammars and `@string.special.path` in editorconfig.
This commit is contained in:
parent
a1573a9135
commit
5b8b126de0
3 changed files with 3 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
; consistency with toml and ini
|
|
||||||
(section
|
(section
|
||||||
(section_name) @type)
|
(section_name) @string.special.path)
|
||||||
|
|
||||||
(character_choice
|
(character_choice
|
||||||
(character) @constant)
|
(character) @constant)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
; Sections
|
; Sections
|
||||||
(section_name) @type
|
(section_name) @markup.heading
|
||||||
|
|
||||||
((section_name) @keyword.import
|
((section_name) @keyword.import
|
||||||
(#eq? @keyword.import "include"))
|
(#eq? @keyword.import "include"))
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(section_name
|
(section_name
|
||||||
(text) @type) ; consistency with toml
|
(text) @markup.heading)
|
||||||
|
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue