aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index b6dbcd7c2b..c61c4a8447 100644
--- a/parse.y
+++ b/parse.y
@@ -7630,6 +7630,9 @@ assignable_gen(struct parser_params *parser, ID id, NODE *val)
else if (id == keyword__LINE__) {
yyerror("Can't assign to __LINE__");
}
+ else if (id == keyword__ENCODING__) {
+ yyerror("Can't assign to __ENCODING__");
+ }
else if (is_local_id(id)) {
if (dyna_in_block()) {
if (dvar_curr(id)) {
@@ -9562,6 +9565,7 @@ static const struct kw_assoc {
{keyword_END, "END"},
{keyword__LINE__, "__LINE__"},
{keyword__FILE__, "__FILE__"},
+ {keyword__ENCODING__, "__ENCODING__"},
{0, NULL}
};