Merge "type.keyword" into "keyword" to reduce complexities

This commit is contained in:
2025-06-15 14:01:00 -04:00
parent 3143b900ee
commit 6e8f69839f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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\\\\]+)"