aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorLeonardo EugĂȘnio2024-03-17 23:07:09 +0000
committerGitHub2024-03-17 23:07:09 +0000
commitd99b6177c21df836c80cc60a500c73d64a7f9bfd (patch)
treedb329bf47f070daa3b16a10648a7c943fe53c01a /languages.toml
parenteead105f94c552259cdbf1f572d047cbabb24c49 (diff)
Add blade support (#9513)
* Add php-only language config and queries php-only is required enabling php injections like in blade templates * Add blade templates support
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 69146841..6e6c5793 100644
--- a/languages.toml
+++ b/languages.toml
@@ -941,6 +941,29 @@ name = "php"
source = { git = "https://github.com/tree-sitter/tree-sitter-php", rev = "f860e598194f4a71747f91789bf536b393ad4a56" }
[[language]]
+name = "php-only"
+scope = "source.php-only"
+injection-regex = "php-only"
+file-types = []
+indent = { tab-width = 4, unit = " " }
+roots = ["composer.json", "index.php"]
+
+[[grammar]]
+name = "php-only"
+source = { git = "https://github.com/tree-sitter/tree-sitter-php", rev = "cf1f4a0f1c01c705c1d6cf992b104028d5df0b53", subpath = "php_only" }
+
+[[language]]
+name = "blade"
+scope = "source.blade.php"
+file-types = [{ glob = "*.blade.php" }, "blade"]
+injection-regex = "blade"
+roots = ["composer.json", "index.php"]
+
+[[grammar]]
+name = "blade"
+source = { git = "https://github.com/EmranMR/tree-sitter-blade", rev = "4c66efe1e05c639c555ee70092021b8223d2f440" }
+
+[[language]]
name = "twig"
scope = "source.twig"
injection-regex = "twig"