diff options
author | Leonardo EugĂȘnio | 2024-03-17 23:07:09 +0000 |
---|---|---|
committer | GitHub | 2024-03-17 23:07:09 +0000 |
commit | d99b6177c21df836c80cc60a500c73d64a7f9bfd (patch) | |
tree | db329bf47f070daa3b16a10648a7c943fe53c01a /runtime/queries/blade | |
parent | eead105f94c552259cdbf1f572d047cbabb24c49 (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 'runtime/queries/blade')
-rw-r--r-- | runtime/queries/blade/folds.scm | 8 | ||||
-rw-r--r-- | runtime/queries/blade/highlights.scm | 4 | ||||
-rw-r--r-- | runtime/queries/blade/injections.scm | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/blade/folds.scm b/runtime/queries/blade/folds.scm new file mode 100644 index 00000000..c1711482 --- /dev/null +++ b/runtime/queries/blade/folds.scm @@ -0,0 +1,8 @@ +((directive_start) @start + (directive_end) @end.after + (#set! role block)) + + +((bracket_start) @start + (bracket_end) @end + (#set! role block))
\ No newline at end of file diff --git a/runtime/queries/blade/highlights.scm b/runtime/queries/blade/highlights.scm new file mode 100644 index 00000000..b3d442a0 --- /dev/null +++ b/runtime/queries/blade/highlights.scm @@ -0,0 +1,4 @@ +(directive) @tag +(directive_start) @tag +(directive_end) @tag +(comment) @comment diff --git a/runtime/queries/blade/injections.scm b/runtime/queries/blade/injections.scm new file mode 100644 index 00000000..4c636734 --- /dev/null +++ b/runtime/queries/blade/injections.scm @@ -0,0 +1,9 @@ +((text) @injection.content + (#set! injection.combined) + (#set! injection.language php)) + +((php_only) @injection.content + (#set! injection.language php-only)) +((parameter) @injection.content + (#set! injection.language php-only)) + |