]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/php.yaml
Fix php syntax file
[micro.git] / runtime / syntax / php.yaml
index b3f2dc4bd84c3c93ece4353d373391b813e5e65a..2a1c69e71b6c991bc800d366fae50e7bfbe0e861 100644 (file)
@@ -18,10 +18,10 @@ rules:
     - comment: "<!--.+?-->"
     - default: "<\\?(php|=)\" end=\"\\?>"
     - identifier.class: "([a-zA-Z0-9_-]+)\\("
-    - preproc: "\\b(require|include)(_once)?)\\b"
+    - preproc: "\\b(require|include)(_once)?\\b"
     - 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"
     - 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"