feat(erlang): add new keyword and operator from OTP25 (#4765)

This commit is contained in:
haoxian 2023-05-06 16:39:30 +08:00 committed by GitHub
parent 39a78192fb
commit 8646c0d2ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,7 @@
(fun_decl)
(anonymous_fun)
(case_expr)
(maybe_expr)
(map_expr)
(export_attribute)
(export_type_attribute)

View file

@ -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"