Skip to content

Commit 2d23760

Browse files
azizkprincemaple
authored andcommitted
Elixir: fix: match everything after triple quotes as invalid.
1 parent ee83cef commit 2d23760

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Elixir.sublime-syntax

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ contexts:
156156
- include: escaped_or_interpolated
157157

158158
heredoc_regex_interpolated:
159-
- match: (""")\s*(.*)\n
159+
- match: (""")(.*)\n
160160
captures:
161161
1: punctuation.definition.string.begin.elixir
162162
2: invalid.illegal.opening-heredoc.elixir
@@ -170,7 +170,7 @@ contexts:
170170
- match: (?=^.*?""")
171171
pop: true
172172

173-
- match: (''')\s*(.*)\n
173+
- match: (''')(.*)\n
174174
captures:
175175
1: punctuation.definition.string.begin.elixir
176176
2: invalid.illegal.opening-heredoc.elixir
@@ -185,7 +185,7 @@ contexts:
185185
pop: true
186186

187187
heredoc_regex_raw:
188-
- match: (""")\s*(.*)\n
188+
- match: (""")(.*)\n
189189
comment: Triple-quoted heredocs
190190
captures:
191191
1: punctuation.definition.string.begin.elixir
@@ -199,7 +199,7 @@ contexts:
199199
- match: (?=^.*?""")
200200
pop: true
201201

202-
- match: (''')\s*(.*)\n
202+
- match: (''')(.*)\n
203203
comment: Triple-quoted heredocs
204204
captures:
205205
1: punctuation.definition.string.begin.elixir
@@ -214,7 +214,7 @@ contexts:
214214
pop: true
215215

216216
heredoc_string_interpolated:
217-
- match: (""")\s*(.*)\n
217+
- match: (""")(.*)\n
218218
comment: Triple-quoted heredocs
219219
captures:
220220
1: punctuation.definition.string.begin.elixir
@@ -224,7 +224,7 @@ contexts:
224224
- include: escaped_or_interpolated
225225
- include: heredoc_string_closing_double
226226

227-
- match: (''')\s*(.*)\n
227+
- match: (''')(.*)\n
228228
comment: Triple-quoted heredocs
229229
captures:
230230
1: punctuation.definition.string.begin.elixir
@@ -235,7 +235,7 @@ contexts:
235235
- include: heredoc_string_closing_single
236236

237237
heredoc_string_raw:
238-
- match: (""")\s*(.*)\n
238+
- match: (""")(.*)\n
239239
comment: Triple-quoted heredocs
240240
captures:
241241
1: punctuation.definition.string.begin.elixir
@@ -244,7 +244,7 @@ contexts:
244244
- meta_scope: meta.string.elixir string.quoted.triple.double.elixir
245245
- include: heredoc_string_closing_double
246246

247-
- match: (''')\s*(.*)\n
247+
- match: (''')(.*)\n
248248
comment: Triple-quoted heredocs
249249
captures:
250250
1: punctuation.definition.string.begin.elixir

0 commit comments

Comments
 (0)