Skip to content

Commit 1a672c2

Browse files
committed
@Number -> @constant.numeric
1 parent ff94f5d commit 1a672c2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

runtime/queries/nu/highlights.scm

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
; ---
4848
; literals
49-
(val_number) @number
49+
(val_number) @constant.numeric
5050

5151
(val_duration
5252
unit: _ @variable.parameter)
@@ -59,13 +59,13 @@
5959
"0b"
6060
"0o"
6161
"0x"
62-
] @number
62+
] @constant.numeric
6363
"[" @punctuation.bracket
6464
digit: [
6565
"," @punctuation.delimiter
66-
(hex_digit) @number
66+
(hex_digit) @constant.numeric
6767
]
68-
"]" @punctuation.bracket) @number
68+
"]" @punctuation.bracket) @constant.numeric
6969

7070
(val_bool) @constant.builtin
7171

@@ -77,7 +77,7 @@ arg_str: (val_string) @variable.parameter
7777

7878
file_path: (val_string) @variable.parameter
7979

80-
(val_date) @number
80+
(val_date) @constant.numeric
8181

8282
(inter_escape_sequence) @constant.character.escape
8383

@@ -376,9 +376,7 @@ key: (identifier) @property
376376
">"
377377
] @punctuation.bracket)
378378

379-
(shebang) @keyword.directive
380-
381-
(comment) @comment
379+
[(comment) (shebang)] @comment
382380

383381
((comment)+ @comment.documentation @spell
384382
.

0 commit comments

Comments
 (0)