1
0
mirror of https://github.com/helix-editor/helix synced 2026-05-04 17:40:38 +02:00
Files
helix/runtime/queries/git-config/injections.scm
2026-02-05 17:01:45 +09:00

16 lines
482 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
; https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
; https://git-scm.com/docs/gitattributes#_customizing_word_diff
; e.g.
; ```
; [diff "tex"]
; xfuncname = "^(\\\\(sub)*section\\{.*)$"
; wordRegex = "\\\\[a-zA-Z]+|[{}]|\\\\.|[^\\{}[:space:]]+"
; ```
(variable
(name) @_var (#any-of? @_var "xfuncname" "wordRegex")
value: (string) @injection.content
(#set! injection.language "regex"))