diff options
author | Arthur Deierlein | 2024-03-17 22:53:30 +0000 |
---|---|---|
committer | GitHub | 2024-03-17 22:53:30 +0000 |
commit | 9ec0271873ed484f96342489b4117391e88abcd3 (patch) | |
tree | 944b2d543ba4ca5f97d0fc7f02331f5a6a2045d5 /runtime/queries | |
parent | 61f7d9ce2f2d20f4b0bd2f21036eac1f11cb2c5c (diff) |
Add support for hyprland config (#9899)
* feat: add hyprland config language
* adjust indents to helix
* adjust highlights to helix
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/hyprlang/highlights.scm | 58 | ||||
-rw-r--r-- | runtime/queries/hyprlang/indents.scm | 6 | ||||
-rw-r--r-- | runtime/queries/hyprlang/injections.scm | 3 |
3 files changed, 67 insertions, 0 deletions
diff --git a/runtime/queries/hyprlang/highlights.scm b/runtime/queries/hyprlang/highlights.scm new file mode 100644 index 00000000..bf898c9c --- /dev/null +++ b/runtime/queries/hyprlang/highlights.scm @@ -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 diff --git a/runtime/queries/hyprlang/indents.scm b/runtime/queries/hyprlang/indents.scm new file mode 100644 index 00000000..88bfe743 --- /dev/null +++ b/runtime/queries/hyprlang/indents.scm @@ -0,0 +1,6 @@ +(section) @indent + +(section + "}" @outdent) + +"}" @extend diff --git a/runtime/queries/hyprlang/injections.scm b/runtime/queries/hyprlang/injections.scm new file mode 100644 index 00000000..1f0199ed --- /dev/null +++ b/runtime/queries/hyprlang/injections.scm @@ -0,0 +1,3 @@ +(exec + (string) @injection.content + (#set! injection.language "bash")) |