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.
This commit is contained in:
parent
3e3cc0885a
commit
70e3fda2eb
@ -1,5 +1,4 @@
|
|||||||
/* This file is automatically generated from parser.rl by using ragel */
|
/* This file is automatically generated from parser.rl by using ragel */
|
||||||
|
|
||||||
#line 1 "parser.rl"
|
#line 1 "parser.rl"
|
||||||
#include "../fbuffer/fbuffer.h"
|
#include "../fbuffer/fbuffer.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
|
@ -6,6 +6,6 @@ RAGEL = ragel
|
|||||||
$(RAGEL) -G2 $<
|
$(RAGEL) -G2 $<
|
||||||
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
|
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
|
||||||
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
|
-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:
|
parser.c:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user