Skip to content

Commit 63c7dca

Browse files
committed
more highlight, better tree
1 parent f27ab8f commit 63c7dca

File tree

6 files changed

+302
-256
lines changed

6 files changed

+302
-256
lines changed

grammar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = grammar({
103103
$._space,
104104
$._equals,
105105
$._space,
106-
$._list
106+
$.list
107107
),
108108

109109
// -- OPTIONAL NEEDS KEY-VALUE
@@ -114,7 +114,7 @@ module.exports = grammar({
114114
$._space,
115115
$._equals,
116116
$._space,
117-
$._list
117+
$.list
118118
),
119119

120120
// GENERAL
@@ -124,7 +124,7 @@ module.exports = grammar({
124124
_indent: $ => " ",
125125
_space: $ => " ",
126126

127-
_list: $ => seq(
127+
list: $ => seq(
128128
$.identifier,
129129
repeat(
130130
seq(

queries/taskr/highlights.scm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
"," @punctuation.delimiter
2+
":" @keyword.conditional.ternary
3+
14
(kw_default_env) @keyword
25
(kw_env) @keyword
36
(file_key) @property
7+
(filename) @constant
48

59
(kw_task) @keyword
610
(run_key) @property
711
(desc_key) @property
812
(alias_key) @property
913
(needs_key) @property
14+
15+
(text) @string
16+
(command) @function

src/grammar.json

Lines changed: 5 additions & 5 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: 27 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)