Permalink
Browse files

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 http://git-scm.com/docs/git-config#FILES
  • Loading branch information...
infininight committed Dec 2, 2013
1 parent ac86df1 commit c2a675a462de354e862f9e3a052007d531027615
Showing with 6 additions and 0 deletions.
  1. +6 −0 Syntaxes/Git Config.tmLanguage
@@ -171,6 +171,12 @@
<string>meta.value-pair.section-item.git-config</string>
<key>patterns</key>
<array>
+ <dict>
+ <key>match</key>
+ <string>\\[ntb"\\]</string>
+ <key>name</key>
+ <string>constant.character.escape.git-config</string>
+ </dict>
<dict>
<key>include</key>
<string>#boolean</string>

0 comments on commit c2a675a

Please sign in to comment.