File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,7 @@ 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})(?:\((.*?)\))?(>)
68
- comment : iex prompt continuation
69
- captures :
70
- 1 : meta.string.elixir
71
- 2 : keyword.other.iex-dots.elixir
72
- 3 : constant.other.elixir
73
- 4 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
67
+ - include : iex_dots # iex prompt continuation: ...>
74
68
75
69
core_syntax :
76
70
# The rules are approximately ordered by their likeliness of occurrence
@@ -1910,6 +1904,15 @@ contexts:
1910
1904
pop : true
1911
1905
- include : core_syntax
1912
1906
1907
+ iex_dots :
1908
+ - match : ^(\s*)(\.{3})(?:\((.*?)\))?(>)
1909
+ comment : iex prompt continuation
1910
+ captures :
1911
+ 1 : meta.string.elixir
1912
+ 2 : keyword.other.iex-dots.elixir
1913
+ 3 : constant.other.elixir
1914
+ 4 : keyword.other.iex-angle.elixir punctuation.definition.iex.begin.elixir
1915
+
1913
1916
comma_and_skip_ws :
1914
1917
- include : invalid_comma
1915
1918
- match : \,
@@ -2322,10 +2325,12 @@ contexts:
2322
2325
2323
2326
comment :
2324
2327
# - include: opaque_struct
2325
- - match : (#).*\n?
2326
- scope : comment.line.number-sign.elixir
2327
- captures :
2328
- 1 : punctuation.definition.comment.elixir
2328
+ - match : \#
2329
+ scope : punctuation.definition.comment.elixir
2330
+ push :
2331
+ - meta_scope : comment.line.number-sign.elixir
2332
+ - match : \n
2333
+ pop : true
2329
2334
2330
2335
comments :
2331
2336
- match : (?=#)
You can’t perform that action at this time.
0 commit comments