Skip to content

Commit

Permalink
feat: Add PHP support (#1243)
Browse files Browse the repository at this point in the history
* declare tree-sitter-php 0.20.0

* Declare keywords

* update documentation for php

* Update programming-languages.md

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
fbagnol and autofix-ci[bot] authored Jan 22, 2024
1 parent 84f27ce commit 8e36bee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions crates/tabby-common/assets/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,32 @@ top_level_keywords = [
"dynamic",
"async",
]


[[config]]
languages = ["php"]
line_comment = "//"
top_level_keywords = [
"abstract",
"class",
"const",
"declare",
"extends",
"final",
"finally",
"function",
"global",
"implements",
"include_once",
"include",
"interface",
"namespace",
"private",
"protected",
"public",
"require_once",
"require",
"static",
"trait",
"use",
]
2 changes: 1 addition & 1 deletion website/docs/programming-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ For an actual example of an issue or pull request adding the above support, plea
* [Java](https://www.java.com/)
* [Kotlin](https://www.kotlinlang.org/)
* [C/C++](https://cplusplus.com/), since v0.8.0
* [PHP](https://www.php.net/): Since v0.8.0

## Languages Missing Certain Support

Expand All @@ -40,7 +41,6 @@ For an actual example of an issue or pull request adding the above support, plea
| Haskell | 🚫 | 🚫 |
| Julia | 🚫 | 🚫 |
| Lua | 🚫 | 🚫 |
| PHP | 🚫 | 🚫 |
| Perl | 🚫 | 🚫 |
| Scala | 🚫 | 🚫 |
| Kotlin | 🚫 | 🚫 |

0 comments on commit 8e36bee

Please sign in to comment.