Update languages.toml for Nickel (#7059)

pull/7146/head
Viktor Kleen 2 years ago committed by GitHub
parent 0266ec6ba3
commit 0c21c227e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -648,9 +648,15 @@ comment-token = "#"
language-servers = [ "nls" ] language-servers = [ "nls" ]
indent = { tab-width = 2, unit = " " } indent = { tab-width = 2, unit = " " }
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
[[grammar]] [[grammar]]
name = "nickel" name = "nickel"
source = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "9d83db400b6c11260b9106f131f93ddda8131933" } source = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "3a794388773f2424a97b2186828aa3fac4c66ce6" }
[[language]] [[language]]
name = "nix" name = "nix"

@ -20,7 +20,7 @@
) )
(record_operand (atom (ident) @variable)) (record_operand (atom (ident) @variable))
(let_expr (let_in_block
"let" @keyword "let" @keyword
"rec"? @keyword "rec"? @keyword
pat: (pattern pat: (pattern
@ -53,7 +53,7 @@
(interpolation_end) @punctuation.bracket (interpolation_end) @punctuation.bracket
["forall" "default" "doc"] @keyword ["forall" "default" "doc"] @keyword
["if" "then" "else" "switch"] @keyword.control.conditional ["if" "then" "else" "match"] @keyword.control.conditional
"import" @keyword.control.import "import" @keyword.control.import
(infix_expr (infix_expr

@ -1,7 +1,7 @@
[ [
(fun_expr) (fun_expr)
(let_expr) (let_expr)
(switch_expr) (match_expr)
(ite_expr) (ite_expr)
(uni_record) (uni_record)

@ -0,0 +1,3 @@
(annot_atom doc: (static_string)
@injection.content
(#set! injection.language "markdown"))
Loading…
Cancel
Save