From 5b8b126de02ebfd92e46ed5986b3e58e870b85de Mon Sep 17 00:00:00 2001 From: Omar Valdez Date: Tue, 3 Sep 2024 01:24:16 -0700 Subject: 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. --- queries/editorconfig/highlights.scm | 3 +-- queries/git_config/highlights.scm | 2 +- queries/ini/highlights.scm | 2 +- 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 -- cgit v1.2.3-70-g09d2