mirror of https://github.com/helix-editor/helix
Add support for hyprland config (#9899)
* feat: add hyprland config language * adjust indents to helix * adjust highlights to helixpull/8727/head^2
parent
61f7d9ce2f
commit
9ec0271873
@ -0,0 +1,58 @@
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"source"
|
||||
"exec"
|
||||
"exec-once"
|
||||
] @function.builtin
|
||||
|
||||
(keyword
|
||||
(name) @keyword)
|
||||
|
||||
(assignment
|
||||
(name) @variable.other.member)
|
||||
|
||||
(section
|
||||
(name) @namespace)
|
||||
|
||||
(section
|
||||
device: (device_name) @type)
|
||||
|
||||
(variable) @variable
|
||||
|
||||
"$" @punctuation.special
|
||||
|
||||
(boolean) @constant.builtin.boolean
|
||||
|
||||
(string) @string
|
||||
|
||||
(mod) @constant
|
||||
|
||||
[
|
||||
"rgb"
|
||||
"rgba"
|
||||
] @function.builtin
|
||||
|
||||
[
|
||||
(number)
|
||||
(legacy_hex)
|
||||
(angle)
|
||||
(hex)
|
||||
] @constant.numeric
|
||||
|
||||
"deg" @type
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"="
|
||||
"-"
|
||||
"+"
|
||||
] @operator
|
@ -0,0 +1,6 @@
|
||||
(section) @indent
|
||||
|
||||
(section
|
||||
"}" @outdent)
|
||||
|
||||
"}" @extend
|
@ -0,0 +1,3 @@
|
||||
(exec
|
||||
(string) @injection.content
|
||||
(#set! injection.language "bash"))
|
Loading…
Reference in New Issue