fix python syntax to prioritize multi liner comments

This commit is contained in:
Amr Tamimi
2017-03-23 11:27:44 +01:00
parent 41e9b0079d
commit eaf4eb2d63
2 changed files with 26 additions and 26 deletions
+12 -12
View File
@@ -29,18 +29,6 @@ rules:
# numbers # numbers
- constant.number: "\\b[0-9]+\\b" - constant.number: "\\b[0-9]+\\b"
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."
- comment: - comment:
start: "#" start: "#"
end: "$" end: "$"
@@ -55,3 +43,15 @@ rules:
start: "'''" start: "'''"
end: "'''" end: "'''"
rules: [] rules: []
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."
+12 -12
View File
@@ -28,18 +28,6 @@ rules:
# numbers # numbers
- constant.number: "\\b[0-9]+\\b" - constant.number: "\\b[0-9]+\\b"
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."
- comment: - comment:
start: "#" start: "#"
end: "$" end: "$"
@@ -54,3 +42,15 @@ rules:
start: "'''" start: "'''"
end: "'''" end: "'''"
rules: [] rules: []
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."