summaryrefslogtreecommitdiff
path: root/ext/json/parser/prereq.mk
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-05 17:54:36 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-05 17:54:36 +0900
commit70e3fda2eb45c841e5fb4574273d20f8df5455e5 (patch)
treea2f64264f0c40ea1d7049cd350547577ab33e6ef /ext/json/parser/prereq.mk
parent3e3cc0885a9100e9d1bfdb77e136416ec803f4ca (diff)
ext/json/parser/prereq.mk: keep line numbers of ext/json/parser/parser.c
Follow up of 5717e55e9a7790c938afa694a9bf558c0e54bb83. Adding a header with newline broke linenos.
Diffstat (limited to 'ext/json/parser/prereq.mk')
-rw-r--r--ext/json/parser/prereq.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk
index 386999ba9d1..04aeac914da 100644
--- a/ext/json/parser/prereq.mk
+++ b/ext/json/parser/prereq.mk
@@ -6,6 +6,6 @@ RAGEL = ragel
$(RAGEL) -G2 $<
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
- -e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_' $@
+ -e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */" + $$_' $@
parser.c: