Skip to content

Commit 57c6caa

Browse files
committed
feat: support new exec keywords
1 parent af79644 commit 57c6caa

File tree

6 files changed

+1765
-1390
lines changed

6 files changed

+1765
-1390
lines changed

grammar.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ module.exports = grammar({
5454

5555
source: ($) => seq("source", "=", $.string, $._linebreak),
5656

57-
exec: ($) => seq(choice("exec", "exec-once"), "=", $.string, $._linebreak),
57+
exec: ($) =>
58+
seq(
59+
choice("exec-once", "execr-once", "exec", "execr", "exec-shutdown"),
60+
"=",
61+
$.string,
62+
$._linebreak,
63+
),
5864

5965
_value: ($) =>
6066
choice(

queries/hyprlang/highlights.scm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
[
44
"source"
5-
"exec"
65
"exec-once"
6+
"execr-once"
7+
"exec"
8+
"execr"
9+
"exec-shutdown"
710
] @keyword
811

912
(keyword

src/grammar.json

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 23 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)