From 2ce4c6d5fa3e50464b41a3d0190ad0e5ada2fc3c Mon Sep 17 00:00:00 2001 From: jneem Date: Sun, 29 Sep 2024 19:30:50 +0700 Subject: [PATCH] Bump tree-sitter-nickel (#11771) --- languages.toml | 2 +- runtime/queries/nickel/highlights.scm | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/languages.toml b/languages.toml index 802f346cb..1918fcc32 100644 --- a/languages.toml +++ b/languages.toml @@ -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" diff --git a/runtime/queries/nickel/highlights.scm b/runtime/queries/nickel/highlights.scm index 4e4bf6694..e5da72162 100644 --- a/runtime/queries/nickel/highlights.scm +++ b/runtime/queries/nickel/highlights.scm @@ -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