Skip to content

Commit

Permalink
Quotation escape correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
calculuswhiz committed May 13, 2015
1 parent e0768b3 commit f2bb704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assembly x86 AT&T.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@
},
{
"name": "string.quoted",
"match": "(\".*?(?<![^!]!)\"|<.*?(?<![^!]!)>|'.*?(?<![^!]!)')",
// "match": "(\".*?(?<![^!][!]|[^\\\\][\\\\])\"|<.*?(?<![^!]!)>|'.*?(?<![^!]!)')",
// Uncomment this one if you don't make frequent use of altmacro:
// "match": "(\".*?\"|<.*?>|'.*?')",
"match": "(\".*?(?<![^\\\\][\\\\])\"|<.*?(?<![^\\\\][\\\\])>)",
"comment": "Note that delimiting strings by any other means besides the double quotes are forbidden unless .altmacro is present or --alternate flag is given to as. ! means next char is a literal, useful for delimiters."
},
{
Expand Down
2 changes: 1 addition & 1 deletion Assembly x86 AT&T.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
<key>comment</key>
<string>Note that delimiting strings by any other means besides the double quotes are forbidden unless .altmacro is present or --alternate flag is given to as. ! means next char is a literal, useful for delimiters.</string>
<key>match</key>
<string>(".*?(?&lt;![^!]!)"|&lt;.*?(?&lt;![^!]!)&gt;|'.*?(?&lt;![^!]!)')</string>
<string>(".*?(?&lt;![^\\][\\])"|&lt;.*?(?&lt;![^\\][\\])&gt;)</string>
<key>name</key>
<string>string.quoted</string>
</dict>
Expand Down

0 comments on commit f2bb704

Please sign in to comment.