Python syntax: multiline string should be constant.string, not comment (#2268)

* Python syntax: multiline string should be comment.string, not comment 

''' delimits multiline strings, not comments

* Python syntax: multiline string should be comment.string, not comment 

''' delimits multiline strings, not comments

* Update python3.yaml for python3.10 keywords
This commit is contained in:
abaldota
2021-11-15 05:54:56 +00:00
committed by GitHub
parent 26c24c25c0
commit d023aef6b5
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ rules:
# definitions
- identifier: "def [a-zA-Z_0-9]+"
# keywords
- statement: "\\b(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b"
- statement: "\\b(and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b"
# decorators
- brightgreen: "@.*[(]"
# operators
@@ -36,7 +36,7 @@ rules:
end: "\"\"\""
rules: []
- comment:
- constant.string:
start: "'''"
end: "'''"
rules: []