mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -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)
|
(fun_decl)
|
||||||
(anonymous_fun)
|
(anonymous_fun)
|
||||||
(case_expr)
|
(case_expr)
|
||||||
|
(maybe_expr)
|
||||||
(map_expr)
|
(map_expr)
|
||||||
(export_attribute)
|
(export_attribute)
|
||||||
(export_type_attribute)
|
(export_type_attribute)
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@
|
||||||
"->"
|
"->"
|
||||||
"=>"
|
"=>"
|
||||||
"|"
|
"|"
|
||||||
|
"?="
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -58,7 +59,7 @@
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
;; conditional
|
;; conditional
|
||||||
([
|
[
|
||||||
"receive"
|
"receive"
|
||||||
"if"
|
"if"
|
||||||
"case"
|
"case"
|
||||||
|
|
@ -66,7 +67,9 @@
|
||||||
"when"
|
"when"
|
||||||
"after"
|
"after"
|
||||||
"end"
|
"end"
|
||||||
] @conditional (#set! "priority" 95))
|
"maybe"
|
||||||
|
"else"
|
||||||
|
] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
"catch"
|
"catch"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue