File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,28 @@ func (r *importReader) findEmbed(first bool) bool {
198
198
case ' ' , '\t' :
199
199
// leave startLine alone
200
200
201
+ case '\'' :
202
+ startLine = false
203
+ for r .err == nil {
204
+ if r .eof {
205
+ r .syntaxError ()
206
+ }
207
+ c = r .readByteNoBuf ()
208
+ if c == '\\' {
209
+ _ = r .readByteNoBuf ()
210
+ if r .err != nil {
211
+ r .syntaxError ()
212
+ return false
213
+ }
214
+ continue
215
+ }
216
+ if c == '\'' {
217
+ c = r .readByteNoBuf ()
218
+ goto Reswitch
219
+ }
220
+ }
221
+ goto Reswitch
222
+
201
223
case '"' :
202
224
startLine = false
203
225
for r .err == nil {
@@ -206,7 +228,7 @@ func (r *importReader) findEmbed(first bool) bool {
206
228
}
207
229
c = r .readByteNoBuf ()
208
230
if c == '\\' {
209
- r .readByteNoBuf ()
231
+ _ = r .readByteNoBuf ()
210
232
if r .err != nil {
211
233
r .syntaxError ()
212
234
return false
You can’t perform that action at this time.
0 commit comments