diff options
author | Michael Davis | 2024-03-21 14:13:38 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2024-03-21 15:20:29 +0000 |
commit | 961025433d8707c49d912bd22e7e1615574baec2 (patch) | |
tree | 6f021afa9a1474bc0cffc6116ecc092c01125754 | |
parent | 51739f1290b9007febc68706727189a085265017 (diff) |
Update tree-sitter-git-commit
This commit has partial support for escapes within strings.
-rw-r--r-- | languages.toml | 2 | ||||
-rw-r--r-- | runtime/queries/git-config/highlights.scm | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/languages.toml b/languages.toml index 9b0a1612..970c943f 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 84767edc..456639ce 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 |