diff options
author | Michael Davis | 2022-03-02 14:54:44 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-30 04:24:53 +0000 |
commit | e2a50711d5ca1029b28b1ddaeb3b2989ade7d651 (patch) | |
tree | 9d11902104d1e4da3540ad4580af03c09a7d3ecf /runtime/queries/erlang | |
parent | f2dd3d446914ec0953cd7e056d430fc3b959e75d (diff) |
update tree-sitter-erlang
changes:
- typed fields within records which do not declare a default
value are now correctly highlighted as record fields
- the EEP49 'maybe' form is now parsed
- fixes for highlights for 'begin' and 'after' tokens
Diffstat (limited to 'runtime/queries/erlang')
-rw-r--r-- | runtime/queries/erlang/highlights.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm index fc742f3a..067e0f82 100644 --- a/runtime/queries/erlang/highlights.scm +++ b/runtime/queries/erlang/highlights.scm @@ -22,7 +22,7 @@ (tuple (binary_operator left: (atom) @variable.other.member - operator: "=")) + operator: ["=" "::"])) (tuple (binary_operator left: @@ -74,7 +74,7 @@ @keyword "^(define|export|export_type|include|include_lib|ifdef|ifndef|if|elif|else|endif|vsn|on_load|behaviour|record|file|type|opaque|spec)$")) -["case" "fun" "if" "of" "when" "end" "receive" "try" "catch" "after"] @keyword +["case" "fun" "if" "of" "when" "end" "receive" "try" "catch" "after" "begin" "maybe"] @keyword ; Operators (binary_operator |