aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Valdez <omarantoniovaldezf2@gmail.com>2024-09-03 01:24:16 -0700
committerGitHub <noreply@github.com>2024-09-03 10:24:16 +0200
commit5b8b126de02ebfd92e46ed5986b3e58e870b85de (patch)
tree6601a6b82077093376d88141b5269fcda16747e7
parentfeat(javascript): update parser and queries (diff)
downloadnvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar.gz
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar.bz2
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar.lz
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar.xz
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.tar.zst
nvim-treesitter-5b8b126de02ebfd92e46ed5986b3e58e870b85de.zip
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.
-rw-r--r--queries/editorconfig/highlights.scm3
-rw-r--r--queries/git_config/highlights.scm2
-rw-r--r--queries/ini/highlights.scm2
3 files changed, 3 insertions, 4 deletions
diff --git a/queries/editorconfig/highlights.scm b/queries/editorconfig/highlights.scm
index fd69bc4c8..feb0a524c 100644
--- a/queries/editorconfig/highlights.scm
+++ b/queries/editorconfig/highlights.scm
@@ -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)
diff --git a/queries/git_config/highlights.scm b/queries/git_config/highlights.scm
index 3423e1b0c..6b37e9090 100644
--- a/queries/git_config/highlights.scm
+++ b/queries/git_config/highlights.scm
@@ -1,5 +1,5 @@
; Sections
-(section_name) @type
+(section_name) @markup.heading
((section_name) @keyword.import
(#eq? @keyword.import "include"))
diff --git a/queries/ini/highlights.scm b/queries/ini/highlights.scm
index b71c502aa..cbf958e84 100644
--- a/queries/ini/highlights.scm
+++ b/queries/ini/highlights.scm
@@ -1,5 +1,5 @@
(section_name
- (text) @type) ; consistency with toml
+ (text) @markup.heading)
(comment) @comment @spell