mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
feat(erlang): add new keyword and operator from OTP25 (#4765)
This commit is contained in:
parent
39a78192fb
commit
8646c0d2ea
2 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
(fun_decl)
|
||||
(anonymous_fun)
|
||||
(case_expr)
|
||||
(maybe_expr)
|
||||
(map_expr)
|
||||
(export_attribute)
|
||||
(export_type_attribute)
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
"->"
|
||||
"=>"
|
||||
"|"
|
||||
"?="
|
||||
] @operator
|
||||
|
||||
[
|
||||
|
|
@ -58,7 +59,7 @@
|
|||
] @punctuation.delimiter
|
||||
|
||||
;; conditional
|
||||
([
|
||||
[
|
||||
"receive"
|
||||
"if"
|
||||
"case"
|
||||
|
|
@ -66,7 +67,9 @@
|
|||
"when"
|
||||
"after"
|
||||
"end"
|
||||
] @conditional (#set! "priority" 95))
|
||||
"maybe"
|
||||
"else"
|
||||
] @conditional
|
||||
|
||||
[
|
||||
"catch"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue