diff --git a/languages.toml b/languages.toml index 9b0a16126..970c943f9 100644 --- a/languages.toml +++ b/languages.toml @@ -1617,7 +1617,7 @@ indent = { tab-width = 4, unit = "\t" } [[grammar]] name = "git-config" -source = { git = "https://github.com/the-mikedavis/tree-sitter-git-config", rev = "0e4f0baf90b57e5aeb62dcdbf03062c6315d43ea" } +source = { git = "https://github.com/the-mikedavis/tree-sitter-git-config", rev = "9c2a1b7894e6d9eedfe99805b829b4ecd871375e" } [[language]] name = "git-attributes" diff --git a/runtime/queries/git-config/highlights.scm b/runtime/queries/git-config/highlights.scm index 84767edc6..456639ce3 100644 --- a/runtime/queries/git-config/highlights.scm +++ b/runtime/queries/git-config/highlights.scm @@ -19,9 +19,10 @@ [ "[" "]" - "\"" ] @punctuation.bracket -"=" @punctuation.delimiter +["=" "\\"] @punctuation.delimiter + +(escape_sequence) @constant.character.escape (comment) @comment