Fix precedence for python multi-comments

This commit is contained in:
Zachary Yedidia
2017-03-26 17:24:02 -04:00
parent 89d1f1c202
commit 1655fde09b
5 changed files with 48 additions and 48 deletions

View File

@@ -32,6 +32,18 @@ rules:
- constant: "\\b[0-9]+\\b"
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b|'.'"
- comment:
start: "\"\"\""
end: "\"\"\""
rules:
- todo: "(TODO|XXX|FIXME):?"
- comment:
start: "'''"
end: "'''"
rules:
- todo: "(TODO|XXX|FIXME):?"
- constant.string:
start: "\""
end: "(?<!\\\\)\""
@@ -55,15 +67,3 @@ rules:
rules:
- todo: "(TODO|XXX|FIXME):?"
- comment:
start: "\"\"\""
end: "\"\"\""
rules:
- todo: "(TODO|XXX|FIXME):?"
- comment:
start: "'''"
end: "'''"
rules:
- todo: "(TODO|XXX|FIXME):?"