mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-31 14:26:27 -04:00
Merge "type.keyword" into "keyword" to reduce complexities
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ rules:
|
||||
- symbol: "(,|\\.)"
|
||||
- type: "\\b(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\\b"
|
||||
- type: "\\b(uintptr|byte|rune|string|interface|bool|map|chan|error)\\b"
|
||||
- type.keyword: "\\b(struct)\\b"
|
||||
- keyword: "\\b(struct)\\b"
|
||||
- constant.bool: "\\b(true|false|nil)\\b"
|
||||
- symbol.brackets: "(\\{|\\})"
|
||||
- symbol.brackets: "(\\(|\\))"
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ rules:
|
||||
- identifier.class: "[a-zA-Z\\\\]+::"
|
||||
- identifier: "([A-Z][a-zA-Z0-9_]+)\\s"
|
||||
- identifier: "([A-Z0-9_]+)[;|\\s|\\)|,]"
|
||||
- type.keyword: "(global|public|private|protected|static|const)"
|
||||
- keyword: "(global|public|private|protected|static|const)"
|
||||
- type: "\\b(var|class|extends|function|function_exists|__construct|phpinfo|echo|case|default|exit|switch|extends|as|define|do|declare|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)\\b"
|
||||
- statement: "(^|[[:space:]])(implements|abstract|instanceof|if|else(if)?|endif|namespace|use|as|new|throw|catch|try|while|print|for|(end)?(foreach)?)\\b"
|
||||
- identifier: "new\\s([a-zA-Z0-9\\\\]+)"
|
||||
|
||||
Reference in New Issue
Block a user