aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/blade
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/blade')
-rw-r--r--runtime/queries/blade/folds.scm8
-rw-r--r--runtime/queries/blade/highlights.scm4
-rw-r--r--runtime/queries/blade/injections.scm9
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))
+