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) (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)

View file

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