summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-23 17:20:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-23 17:20:19 +0900
commit607aa11711a7975540e1d71c2616ae5533feb35a (patch)
treec6280968bc8913e0c25e54696e2cfb80ecb4360b /parse.y
parenta58f9aa3504f4057950fb858ea54b28d954f947f (diff)
Ignore useless separators preceding a file encoding comment
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index e24d26e6e1d..909a4ec3b18 100644
--- a/parse.y
+++ b/parse.y
@@ -8274,6 +8274,7 @@ set_file_encoding(struct parser_params *p, const char *str, const char *send)
continue;
}
if (STRNCASECMP(str-6, "coding", 6) == 0) break;
+ sep = 0;
}
for (;;) {
do {