From 961025433d8707c49d912bd22e7e1615574baec2 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 21 Mar 2024 10:13:38 -0400 Subject: [PATCH] Update tree-sitter-git-commit This commit has partial support for escapes within strings. --- languages.toml | 2 +- runtime/queries/git-config/highlights.scm | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/languages.toml b/languages.toml index 9b0a16126373..970c943f90e4 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 84767edc6339..456639ce33ca 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