Skip to content

Commit

Permalink
nickel: update treesitter queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vkleen committed May 19, 2023
1 parent 1432e56 commit e96fa3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/queries/nickel/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)

(record_operand (atom (ident) @variable))
(let_expr
(let_in_block
"let" @keyword
"rec"? @keyword
pat: (pattern
Expand Down Expand Up @@ -53,7 +53,7 @@
(interpolation_end) @punctuation.bracket

["forall" "default" "doc"] @keyword
["if" "then" "else" "switch"] @keyword.control.conditional
["if" "then" "else" "match"] @keyword.control.conditional
"import" @keyword.control.import

(infix_expr
Expand Down
3 changes: 3 additions & 0 deletions runtime/queries/nickel/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(annot_atom doc: (static_string)
@injection.content
(#set! injection.language "markdown"))

0 comments on commit e96fa3a

Please sign in to comment.