diff --git a/runtime/queries/blade/highlights.scm b/runtime/queries/blade/highlights.scm index b3d442a05..04a4b9657 100644 --- a/runtime/queries/blade/highlights.scm +++ b/runtime/queries/blade/highlights.scm @@ -2,3 +2,7 @@ (directive_start) @tag (directive_end) @tag (comment) @comment +[ + (bracket_start) + (bracket_end) +] @punctuation.bracket diff --git a/runtime/queries/blade/injections.scm b/runtime/queries/blade/injections.scm index 4c6367349..77cf9eef8 100644 --- a/runtime/queries/blade/injections.scm +++ b/runtime/queries/blade/injections.scm @@ -1,9 +1,14 @@ ((text) @injection.content (#set! injection.combined) - (#set! injection.language php)) + (#set! injection.language "php")) + +((comment) @injection.content + (#set! injection.language "comment")) ((php_only) @injection.content - (#set! injection.language php-only)) -((parameter) @injection.content - (#set! injection.language php-only)) + (#set! injection.language "php-only")) + +((parameter) @injection.content + (#set! injection.include-children) + (#set! injection.language "php-only"))