Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/just/injections.scm')
-rw-r--r--runtime/queries/just/injections.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/just/injections.scm b/runtime/queries/just/injections.scm
index 98bb9c437..bce491bfc 100644
--- a/runtime/queries/just/injections.scm
+++ b/runtime/queries/just/injections.scm
@@ -10,6 +10,13 @@
(_) @injection.content)
(#set! injection.language "regex"))
+; Highlight the value of attribute `[arg(pattern = "...")]` as regex
+(attribute_named_parameter
+ name: (identifier) @_name
+ value: (expression (value (string) @injection.content
+ (#set! injection.language "regex")))
+ (#match? @_name "^pattern$"))
+
; ================ Global defaults ================
; Default recipe lines to be bash, but exclude interpolation nodes