Add support for lookbehind in region regexes

Use the 'regexp2' library for lookahead and lookbehind in region
start and end regular expressions to support things like closing quotes
that aren't preceded by backslashes.
This commit is contained in:
Zachary Yedidia
2017-03-22 19:03:06 -04:00
parent bea1c5dc28
commit 87f54be13a
53 changed files with 209 additions and 157 deletions

View File

@@ -16,7 +16,7 @@ rules:
- constant.string:
start: "\""
end: "\""
end: "(?<!\\\\)\""
rules:
- constant.specialChar: "\\\\."
@@ -25,3 +25,4 @@ rules:
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"