mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/json/parser/prereq.mk: keep line numbers of ext/json/parser/parser.c
Follow up of 5717e55e9a
.
Adding a header with newline broke linenos.
This commit is contained in:
parent
3e3cc0885a
commit
70e3fda2eb
2 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
/* This file is automatically generated from parser.rl by using ragel */
|
||||
|
||||
#line 1 "parser.rl"
|
||||
#include "../fbuffer/fbuffer.h"
|
||||
#include "parser.h"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue