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

@@ -29,6 +29,16 @@ rules:
# numbers
- constant.number: "\\b[0-9]+\\b"
- comment:
start: "\"\"\""
end: "\"\"\""
rules: []
- comment:
start: "'''"
end: "'''"
rules: []
- constant.string:
start: "\""
end: "(?<!\\\\)\""
@@ -46,13 +56,3 @@ rules:
end: "$"
rules: []
- comment:
start: "\"\"\""
end: "\"\"\""
rules: []
- comment:
start: "'''"
end: "'''"
rules: []