diff options
author | Viktor Kleen | 2023-05-26 07:23:15 +0000 |
---|---|---|
committer | GitHub | 2023-05-26 07:23:15 +0000 |
commit | 0c21c227e1ca9d5681dc7e08739b28458c346692 (patch) | |
tree | 96c60d5f57f430f965ee5c4ff3fa7b1e8d06ee88 /runtime | |
parent | 0266ec6ba398e4460785c7a6dec556a36d7171b3 (diff) |
Update languages.toml for Nickel (#7059)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/nickel/highlights.scm | 4 | ||||
-rw-r--r-- | runtime/queries/nickel/indents.scm | 2 | ||||
-rw-r--r-- | runtime/queries/nickel/injections.scm | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/runtime/queries/nickel/highlights.scm b/runtime/queries/nickel/highlights.scm index cd458df2..4e4bf669 100644 --- a/runtime/queries/nickel/highlights.scm +++ b/runtime/queries/nickel/highlights.scm @@ -20,7 +20,7 @@ ) (record_operand (atom (ident) @variable)) -(let_expr +(let_in_block "let" @keyword "rec"? @keyword pat: (pattern @@ -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 diff --git a/runtime/queries/nickel/indents.scm b/runtime/queries/nickel/indents.scm index 8be5a6bd..0a428448 100644 --- a/runtime/queries/nickel/indents.scm +++ b/runtime/queries/nickel/indents.scm @@ -1,7 +1,7 @@ [ (fun_expr) (let_expr) - (switch_expr) + (match_expr) (ite_expr) (uni_record) diff --git a/runtime/queries/nickel/injections.scm b/runtime/queries/nickel/injections.scm new file mode 100644 index 00000000..9f00b90a --- /dev/null +++ b/runtime/queries/nickel/injections.scm @@ -0,0 +1,3 @@ +(annot_atom doc: (static_string) + @injection.content + (#set! injection.language "markdown")) |