diff --git a/syntax/stxGo.go b/syntax/stxGo.go index 68fb845..f045e33 100644 --- a/syntax/stxGo.go +++ b/syntax/stxGo.go @@ -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: "(\\(|\\))" diff --git a/syntax/stxPhp.go b/syntax/stxPhp.go index 6bd1c2c..2b3083b 100644 --- a/syntax/stxPhp.go +++ b/syntax/stxPhp.go @@ -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\\\\]+)"