From d99b6177c21df836c80cc60a500c73d64a7f9bfd Mon Sep 17 00:00:00 2001 From: Leonardo EugĂȘnio Date: Sun, 17 Mar 2024 20:07:09 -0300 Subject: 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--- languages.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index 69146841..6e6c5793 100644 --- a/languages.toml +++ b/languages.toml @@ -940,6 +940,29 @@ indent = { tab-width = 4, unit = " " } 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" -- cgit v1.2.3-70-g09d2