Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Update git-config syntax for double quotes. #16

wants to merge 2 commits into from

2 participants


The gitconfig syntax improperly highlights escaped double quotes. Escaping quotes is sometimes necessary (as in mergetool.cmd and others), but when it's done, the highlighting gets borked for the rest of the file.


With the changes in ca2c590 this is no longer the case. Also notice the properly highlighted "upstream" in both images (what the regex is specifically trying to capture).


Commit ca2c590 isn't necessarily relevant to this fix, but per is an acceptable file path.

@infininight infininight referenced this pull request from a commit
@infininight infininight Add proper escapes to unquoted string values
This fixes the issue in #16 where you may need to use a quote character without starting a quoted string context. Allowable escapes taken from

Pulled 1ff4945, rather than a look-behind to detect invalid strings I added the proper escapes to unquoted string values in c2a675a. Thanks!

@infininight infininight closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 Syntaxes/Git Config.tmLanguage
5 Syntaxes/Git Config.tmLanguage
@@ -5,6 +5,7 @@
+ <string>git/config</string>
@@ -110,7 +111,7 @@
- <string>"</string>
+ <string>(?<!\\)"</string>
@@ -120,7 +121,7 @@
- <string>"</string>
+ <string>(?<!\\)"</string>
Something went wrong with that request. Please try again.