From 340c8f2d6b5e8974ab4449b5a9640b0c8a1d10a9 Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Tue, 21 Jan 2025 12:19:59 -0500 Subject: [PATCH] Add blade queries for treesitter --- after/queries/blade/highlights.scm | 9 +++++++++ after/queries/blade/injections.scm | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 after/queries/blade/highlights.scm create mode 100644 after/queries/blade/injections.scm diff --git a/after/queries/blade/highlights.scm b/after/queries/blade/highlights.scm new file mode 100644 index 0000000..9edc25f --- /dev/null +++ b/after/queries/blade/highlights.scm @@ -0,0 +1,9 @@ +(directive) @function +(directive_start) @function +(directive_end) @function +(comment) @comment +((parameter) @include (#set! "priority" 110)) +((php_only) @include (#set! "priority" 110)) +((bracket_start) @function (#set! "priority" 120)) +((bracket_end) @function (#set! "priority" 120)) +(keyword) @function diff --git a/after/queries/blade/injections.scm b/after/queries/blade/injections.scm new file mode 100644 index 0000000..8f7af78 --- /dev/null +++ b/after/queries/blade/injections.scm @@ -0,0 +1,4 @@ +((text) @injection.content + (#not-has-ancestor? @injection.content "envoy") + (#set! injection.combined) + (#set! injection.language php))