Skip to content

Commit 21ab1a1

Browse files
azizkprincemaple
authored andcommitted
Elixir: fixed module function calls in captures.
1 parent 7ca8126 commit 21ab1a1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

syntaxes/Elixir.sublime-syntax

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,9 +2346,6 @@ contexts:
23462346
set:
23472347
- include: dot_operator
23482348
- include: capture_name_pop
2349-
- match: (?={{member}}{{no_id_key_suffix}})
2350-
push: id_member_pop
2351-
- include: if_closing_token_pop
23522349
- include: member_or_call_pop
23532350
- include: capture_name_pop
23542351
- include: special_form

tests/syntax_test_misc.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,12 @@ end[]
887887
# ^^^ variable.other.capture
888888
# ^^^^^^^ variable.other.capture
889889

890+
&Module.func(&1)
891+
# ^ punctuation.section.arguments.end
892+
# ^ punctuation.section.arguments.begin
893+
# ^^^^ variable.function
894+
# ^ punctuation.accessor.dot
895+
890896
&Module |> func(&1)
891897
# ^^^^ variable.function
892898
# ^^ keyword.operator.pipe -punctuation.accessor.arity

0 commit comments

Comments
 (0)