Skip to content

Commit 9a15b00

Browse files
committed
Add a few more keywords
1 parent 0f4cc33 commit 9a15b00

File tree

1 file changed

+37
-15
lines changed

1 file changed

+37
-15
lines changed

syntaxes/nushell.tmLanguage.json

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,39 @@
33
"name": "nushell",
44
"scopeName": "source.nushell",
55
"patterns": [
6-
{ "include": "#keywords" },
7-
{ "include": "#strings" },
8-
{ "include": "#punctuation" },
9-
{ "include": "#comment" },
10-
{ "include": "#range" },
11-
{ "include": "#parameter" },
12-
{ "include": "#digit" },
13-
{ "include": "#blockparam" },
14-
{ "include": "#variable" },
15-
{ "include": "#function" },
16-
{ "include": "#type" }
6+
{
7+
"include": "#keywords"
8+
},
9+
{
10+
"include": "#strings"
11+
},
12+
{
13+
"include": "#punctuation"
14+
},
15+
{
16+
"include": "#comment"
17+
},
18+
{
19+
"include": "#range"
20+
},
21+
{
22+
"include": "#parameter"
23+
},
24+
{
25+
"include": "#digit"
26+
},
27+
{
28+
"include": "#blockparam"
29+
},
30+
{
31+
"include": "#variable"
32+
},
33+
{
34+
"include": "#function"
35+
},
36+
{
37+
"include": "#type"
38+
}
1739
],
1840
"repository": {
1941
"keywords": {
@@ -60,7 +82,7 @@
6082
},
6183
{
6284
"name": "keyword.other.f",
63-
"match": "\\b(fetch|find|first|flatten|fmt|for|format|from)\\b"
85+
"match": "\\b(false|fetch|find|first|flatten|fmt|for|format|from)\\b"
6486
},
6587
{
6688
"name": "keyword.other.g",
@@ -104,7 +126,7 @@
104126
},
105127
{
106128
"name": "keyword.other.n",
107-
"match": "\\b(n|not-in|nu-example-1|nu-example-2|nu-example-3|nu-highlight)\\b"
129+
"match": "\\b(n|not-in|nu-example-1|nu-example-2|nu-example-3|nu-highlight|null)\\b"
108130
},
109131
{
110132
"name": "keyword.other.o",
@@ -148,7 +170,7 @@
148170
},
149171
{
150172
"name": "keyword.other.t",
151-
"match": "\\b(table|to|touch|transpose|tutor)\\b"
173+
"match": "\\b(table|to|touch|transpose|true|tutor)\\b"
152174
},
153175
{
154176
"name": "keyword.other.u_sub",
@@ -249,4 +271,4 @@
249271
}
250272
}
251273
}
252-
}
274+
}

0 commit comments

Comments
 (0)