Add skip statements to all strings

This commit is contained in:
Zachary Yedidia
2017-03-29 09:45:16 -04:00
parent a517ea45bd
commit 47ef864295
51 changed files with 135 additions and 52 deletions

View File

@@ -13,12 +13,15 @@ rules:
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- statement: "\\\"(\\\\\"|[^\"])*\\\"[[:space:]]*:\" \"'(\\'|[^'])*'[[:space:]]*:"
- constant: "\\\\u[0-9a-fA-F]{4}|\\\\[bfnrt'\"/\\\\]"