Unnamed repository; edit this file 'description' to name the repository.
Add rainbows.scm for PHP (#14228)
| -rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
| -rw-r--r-- | runtime/queries/php/rainbows.scm | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 3a794d0a..8bfb7a27 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -183,7 +183,7 @@ | pem | ✓ | | | | | | | perl | ✓ | ✓ | ✓ | | | `perlnavigator` | | pest | ✓ | ✓ | ✓ | | | `pest-language-server` | -| php | ✓ | ✓ | ✓ | ✓ | | `intelephense` | +| php | ✓ | ✓ | ✓ | ✓ | ✓ | `intelephense` | | php-only | ✓ | | | ✓ | | | | pip-requirements | ✓ | | | | | | | pkgbuild | ✓ | ✓ | ✓ | | | `termux-language-server`, `bash-language-server` | diff --git a/runtime/queries/php/rainbows.scm b/runtime/queries/php/rainbows.scm new file mode 100644 index 00000000..49e3e883 --- /dev/null +++ b/runtime/queries/php/rainbows.scm @@ -0,0 +1,15 @@ +[ + (declaration_list) + (compound_statement) + (array_creation_expression) + (subscript_expression) + (parenthesized_expression) + (formal_parameters) + (arguments) + (catch_clause) + (foreach_statement) + (switch_block) + (anonymous_function_use_clause) +] @rainbow.scope + +["(" ")" "[" "]" "{" "}"] @rainbow.bracket |