X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fphp.yaml;h=67f6112723bb9d1ab186bbbd17aa9536ecfe5226;hb=5acbccf0b2aa90df38b39ee5dc6417479a3b435d;hp=bd0c5395758087bc3043acd2f66bf8ed66a9a69c;hpb=2e6cbcb362a4eba98a0019538d8fd6d924745f16;p=micro.git diff --git a/runtime/syntax/php.yaml b/runtime/syntax/php.yaml index bd0c5395..67f61127 100644 --- a/runtime/syntax/php.yaml +++ b/runtime/syntax/php.yaml @@ -18,10 +18,10 @@ rules: - comment: "" - default: "<\\?(php|=)\" end=\"\\?>" - identifier.class: "([a-zA-Z0-9_-]+)\\(" - - preproc: "(require|include|require_once|include_once)" - - type: "\\b(var|class|extends|function|echo|case|default|exit|switch|extends|as|define|do|declare|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)\\b" + - preproc: "\\b(require|include)(_once)?\\b" + - type: "\\b(var|class|extends|fn|function|echo|case|default|exit|switch|extends|as|define|do|declare|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)\\b" - identifier.class: "[a-zA-Z\\\\]+::" - - identifier: "([A-Z][a-zA-Z0-9_]+)\\s" + - identifier: "\\b([A-Z][a-zA-Z0-9_]+)\\b" - identifier: "([A-Z0-9_]+)[;|\\s|\\)|,]" - type.keyword: "(global|public|private|protected|static|const)" - statement: "(implements|abstract|instanceof|if|else(if)?|endif|namespace|use|as|new|throw|catch|try|while|print|(end)?(foreach)?)\\b"