aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/git_config/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/git_config/highlights.scm b/queries/git_config/highlights.scm
index 9172e890c..18b75bc64 100644
--- a/queries/git_config/highlights.scm
+++ b/queries/git_config/highlights.scm
@@ -29,7 +29,10 @@
(string) @string
((string) @text.uri
- (#match? @text.uri "^(~|./|/)"))
+ (#lua-match? @text.uri "^[.]?[/]"))
+
+((string) @text.uri
+ (#lua-match? @text.uri "^[~]"))
(section_header
[