@@ -17,7 +17,7 @@ authors:
17
17
18
18
19
19
variables :
20
- module_name : ' [A-Z][a-zA-Z\d_]*\b '
20
+ module_name : ' [A-Z][a-zA-Z\d_]*+ '
21
21
atom_id_suffix : ' [\w@]*[?!]?'
22
22
atom_id : (?>[[:alpha:]_]{{atom_id_suffix}})
23
23
identifier : (?>[[:lower:]_]\w*[?!]?)
@@ -594,7 +594,7 @@ contexts:
594
594
- match : (?=unquote\()
595
595
set : [map_type_body_pop, arguments_pop, unquote_pop]
596
596
- include : alias_names
597
- - match : _(?: {{module_name}}|{{identifier}})?
597
+ - match : _(?> {{module_name}}|{{identifier}})?
598
598
scope : variable.type.unused.elixir invalid.illegal.struct.elixir
599
599
set : map_type_body_pop
600
600
- include : map_type_body_pop
@@ -1485,7 +1485,7 @@ contexts:
1485
1485
- match : (?={{atom_symbol}}:(?!:))|(?<=["']:)
1486
1486
push : arguments_ws_rest_pop
1487
1487
- include : block_or_keyword
1488
- - match : (?=(?> (?<=%>)\.)?(?>{{module_name}}{{no_key_suffix}}|__MODULE__{{no_id_key_suffix}})|:(?>{{atom_symbol}}|['"]))
1488
+ - match : (?=(?: (?<=%>)\.)?(?>{{module_name}}{{no_key_suffix}}|__MODULE__{{no_id_key_suffix}})|:(?>{{atom_symbol}}|['"]))
1489
1489
push :
1490
1490
- meta_scope : meta.namespace.elixir
1491
1491
- match : (:)({{atom_symbol}})(?!\s*\.)
@@ -2127,7 +2127,7 @@ contexts:
2127
2127
- include : if_non_space_or_eol_pop
2128
2128
2129
2129
alias_names :
2130
- - match : (?=(?> (?<=%>)\.)?(?>{{module_name}}{{no_key_suffix}}|__MODULE__{{no_id_key_suffix}})|:(?>{{atom_symbol}}|['"]))
2130
+ - match : (?=(?: (?<=%>)\.)?(?>{{module_name}}{{no_key_suffix}}|__MODULE__{{no_id_key_suffix}})|:(?>{{atom_symbol}}|['"]))
2131
2131
push :
2132
2132
- include : module_name
2133
2133
- include : dot_accessor
0 commit comments