Skip to content

Commit

Permalink
Bump tree-sitter-nickel (#11771)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem authored Sep 29, 2024
1 parent 82dd963 commit 2ce4c6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "nickel"
source = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "e1d9337864d209898a08c26b8cd4c2dd14c15148" }
source = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "88d836a24b3b11c8720874a1a9286b8ae838d30a" }

[[language]]
name = "nix"
Expand Down
10 changes: 6 additions & 4 deletions runtime/queries/nickel/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
(let_in_block
"let" @keyword
"rec"? @keyword
"in" @keyword
)

(let_binding
pat: (pattern
(ident) @variable
)
"in" @keyword
)

(fun_expr
"fun" @keyword.function
pats:
(pattern
id: (ident) @variable.parameter
)+
(pattern_fun (ident) @variable.parameter)+
"=>" @operator
)
(record_field) @variable.other.member
Expand Down

0 comments on commit 2ce4c6d

Please sign in to comment.