@@ -64,12 +64,13 @@ contexts:
64
64
prototype :
65
65
# NB: rules in the prototype context will always match before any other.
66
66
- include : merge_conflict # Merge conflict markers can occur anywhere.
67
- - match : ^(\s*)(\.{3}).* ?(>)
67
+ - match : ^(\s*)(\.{3})(?:\((.*?)\)) ?(>)
68
68
comment : iex prompt continuation
69
69
captures :
70
70
1 : meta.string.elixir
71
71
2 : keyword.other.iex-dots.elixir
72
- 3 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
72
+ 3 : constant.other.elixir
73
+ 4 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
73
74
74
75
core_syntax :
75
76
# The rules are approximately ordered by their likeliness of occurrence
@@ -1868,10 +1869,11 @@ contexts:
1868
1869
escape : (?=^\s*'''|{{is_markdown_elixir}})
1869
1870
1870
1871
elixir_in_markdown :
1871
- - match : (?<=\s{4})(iex).* ?(>)
1872
+ - match : (?<=\s{4})(iex)(?:\((.*?)\)) ?(>)
1872
1873
captures :
1873
1874
1 : keyword.other.iex.elixir
1874
- 2 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
1875
+ 2 : constant.other.elixir
1876
+ 3 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
1875
1877
push :
1876
1878
- clear_scopes : true
1877
1879
- meta_scope : meta.interpolation.elixir markup.raw.block.markdown markup.raw.block.elixir
@@ -2411,15 +2413,18 @@ contexts:
2411
2413
- include : char_literal
2412
2414
- include : if_ws_closing_token_or_eol_pop
2413
2415
- include : atom_keyword
2414
- - match : |
2415
- (?x)
2416
- (?=[-+*/=!|;] | && | \\\\ | ~(?![a-zA-Z]) | <(?!<(?!<)) | >(?!>(?!>)) | \.\.(?!\.) | ::(?!:))
2417
- | (?=(?>when|and|in|or|not){{no_id_key_suffix}})
2416
+ - match : (?=(?>when|and|in|or|not){{no_id_key_suffix}})
2418
2417
push :
2419
2418
- include : if_closing_token_pop
2420
- - include: operator
2419
+ - match : (?!(?>when|and|in|or|not){{no_id_key_suffix}}|[,\s]|(?<!,))
2420
+ pop : true
2421
2421
- include : elixir_keywords
2422
2422
- include : invalid_comma_or_non_space_pop
2423
+ - match : (?x) (?=[-+*/=!|;] | && | \\\\ | ~(?![a-zA-Z]) | <(?!<(?!<)) | >(?!>(?!>)) | \.\.(?!\.) | ::(?!:))
2424
+ push :
2425
+ - include : if_closing_token_pop
2426
+ - include : operator
2427
+ - include : invalid_comma_or_non_space_pop
2423
2428
- match : (?<=[^:]:)\s
2424
2429
push : invalid_comma_or_non_space_pop
2425
2430
- include : do_block_pop
0 commit comments