Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/nickel/highlights.scm')
-rw-r--r--runtime/queries/nickel/highlights.scm14
1 files changed, 6 insertions, 8 deletions
diff --git a/runtime/queries/nickel/highlights.scm b/runtime/queries/nickel/highlights.scm
index e5da7216..cd458df2 100644
--- a/runtime/queries/nickel/highlights.scm
+++ b/runtime/queries/nickel/highlights.scm
@@ -20,22 +20,20 @@
)
(record_operand (atom (ident) @variable))
-(let_in_block
+(let_expr
"let" @keyword
"rec"? @keyword
- "in" @keyword
-)
-
-(let_binding
pat: (pattern
(ident) @variable
)
+ "in" @keyword
)
-
(fun_expr
"fun" @keyword.function
pats:
- (pattern_fun (ident) @variable.parameter)+
+ (pattern
+ id: (ident) @variable.parameter
+ )+
"=>" @operator
)
(record_field) @variable.other.member
@@ -55,7 +53,7 @@
(interpolation_end) @punctuation.bracket
["forall" "default" "doc"] @keyword
-["if" "then" "else" "match"] @keyword.control.conditional
+["if" "then" "else" "switch"] @keyword.control.conditional
"import" @keyword.control.import
(infix_expr