mirror of https://github.com/helix-editor/helix
Update tree-sitter-git-rebase (#6030)
parent
c5c1b5af34
commit
71220da139
@ -1,11 +1,36 @@
|
|||||||
(operation operator: ["p" "pick" "r" "reword" "e" "edit" "s" "squash" "m" "merge" "d" "drop" "b" "break" "x" "exec"] @keyword)
|
; a rough translation:
|
||||||
(operation operator: ["l" "label" "t" "reset"] @function)
|
; * constant.builtin - git hash
|
||||||
(operation operator: ["f" "fixup"] @function.special)
|
; * constant - a git label
|
||||||
|
; * keyword - command that acts on commits commits
|
||||||
|
; * function - command that acts only on labels
|
||||||
|
; * comment - discarded commentary on a command, has no effect on the rebase
|
||||||
|
; * string - text used in the rebase operation
|
||||||
|
; * operator - a 'switch' (used in fixup and merge), either -c or -C at time of writing
|
||||||
|
|
||||||
|
(((command) @keyword
|
||||||
|
(label) @constant.builtin
|
||||||
|
(message)? @comment)
|
||||||
|
(#match? @keyword "^(p|pick|r|reword|e|edit|s|squash|d|drop)$"))
|
||||||
|
|
||||||
|
(((command) @function
|
||||||
|
(label) @constant
|
||||||
|
(message)? @comment)
|
||||||
|
(#match? @function "^(l|label|t|reset|u|update-ref)$"))
|
||||||
|
|
||||||
|
((command) @keyword
|
||||||
|
(#match? @keyword "^(x|exec|b|break)$"))
|
||||||
|
|
||||||
|
(((command) @attribute
|
||||||
|
(label) @constant.builtin
|
||||||
|
(message)? @comment)
|
||||||
|
(#match? @attribute "^(f|fixup)$"))
|
||||||
|
|
||||||
|
(((command) @keyword
|
||||||
|
(label) @constant.builtin
|
||||||
|
(label) @constant
|
||||||
|
(message) @string)
|
||||||
|
(#match? @keyword "^(m|merge)$"))
|
||||||
|
|
||||||
(option) @operator
|
(option) @operator
|
||||||
(label) @string.special.symbol
|
|
||||||
(commit) @constant
|
|
||||||
"#" @punctuation.delimiter
|
|
||||||
(comment) @comment
|
|
||||||
|
|
||||||
(ERROR) @error
|
(comment) @comment
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
((operation
|
(((command) @attribute
|
||||||
operator: ["x" "exec"]
|
(message)? @injection.content)
|
||||||
(command) @injection.content)
|
(#match? @attribute "^(x|exec)$")
|
||||||
(#set! injection.language "bash"))
|
(#set! injection.language "bash")
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue