Skip to content

Commit

Permalink
feat(queries): more injections
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Mar 25, 2024
1 parent d5b392d commit e5da7d0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions queries/hyprlang/injections.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(exec
(string) @injection.content
(#set! injection.language "bash"))

(keyword
(name) @_name
(#any-of? @_name "windowrule" "windowrulev2")
(params
(string)
(string) @injection.content
(#set! injection.combined)
(#set! injection.language "regex")))

(keyword
(name) @_name
(#match? @_name "bind(l|r|e|n|m|t|i)*")
(params
(_)+
(string) @_function
(#match? @_function ".*exec")
(string) @injection.content
(#set! injection.language "bash")))

0 comments on commit e5da7d0

Please sign in to comment.