diff options
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | languages.toml | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 9039ca15..6331b059 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -46,7 +46,7 @@ | ocaml-interface | ✓ | | | | | org | ✓ | | | | | perl | ✓ | ✓ | ✓ | | -| php | ✓ | ✓ | ✓ | | +| php | ✓ | ✓ | ✓ | `intelephense` | | prolog | | | | `swipl` | | protobuf | ✓ | | ✓ | | | python | ✓ | ✓ | ✓ | `pylsp` | diff --git a/languages.toml b/languages.toml index 8c91db9f..f331edfe 100644 --- a/languages.toml +++ b/languages.toml @@ -428,7 +428,8 @@ scope = "source.php" injection-regex = "php" file-types = ["php"] shebangs = ["php"] -roots = [] +roots = ["composer.json", "index.php"] +language-server = { command = "intelephense", args = ["--stdio"] } indent = { tab-width = 4, unit = " " } [[grammar]] |