mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-02 15:17:14 -04:00
Merge branch 'master' of https://github.com/zyedidia/highlight
This commit is contained in:
@@ -55,4 +55,3 @@ rules:
|
|||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules: []
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ rules:
|
|||||||
# types
|
# types
|
||||||
- type: "\\b(bool|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|int|list|map|memoryview|object|property|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip)\\b"
|
- type: "\\b(bool|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|int|list|map|memoryview|object|property|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip)\\b"
|
||||||
# definitions
|
# definitions
|
||||||
- identifier: "def [a-zA-Z_0-9]+"
|
- identifier: "def [a-zA-Z_0-9]+"
|
||||||
# keywords
|
# keywords
|
||||||
- statement: "\\b(and|as|assert|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|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"
|
||||||
# decorators
|
# decorators
|
||||||
- brightgreen: "@.*[(]"
|
- brightgreen: "@.*[(]"
|
||||||
# operators
|
# operators
|
||||||
|
|||||||
Reference in New Issue
Block a user