mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02: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
|
||||
|
||||
; consistency with toml and ini
|
||||
(section
|
||||
(section_name) @type)
|
||||
(section_name) @string.special.path)
|
||||
|
||||
(character_choice
|
||||
(character) @constant)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; Sections
|
||||
(section_name) @type
|
||||
(section_name) @markup.heading
|
||||
|
||||
((section_name) @keyword.import
|
||||
(#eq? @keyword.import "include"))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(section_name
|
||||
(text) @type) ; consistency with toml
|
||||
(text) @markup.heading)
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
|
|
Loading…
Reference in a new issue