Fix sublime string highlighting.

Backslashes were throwing it off.
This commit is contained in:
Dan Haffey 2015-11-14 10:54:59 -08:00 committed by Raymond Pasco
parent 88caf29d20
commit 7481ff553a
2 changed files with 17 additions and 1 deletions

View File

@ -21,10 +21,12 @@ patterns:
- comment: tape
name: string.double.hoon
begin: \"
patterns: [{match: '\\.|[^"]'}]
end: \"
- comment: cord
name: string.single.hoon
begin: \'
patterns: [{match: "\\\\.|[^']"}]
end: \'
- comment: arm
name: constant.character.hoon
@ -45,4 +47,4 @@ patterns:
name: keyword.control.hoon
begin: ';script(type "text/coffeescript")'
end: '=='
...
...

View File

@ -50,6 +50,13 @@
<string>\"</string>
<key>name</key>
<string>string.double.hoon</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.|[^"]</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
@ -60,6 +67,13 @@
<string>\'</string>
<key>name</key>
<string>string.single.hoon</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.|[^']</string>
</dict>
</array>
</dict>
<dict>
<key>comment</key>