diff options
| author | Teddy Wing | 2021-08-24 20:10:29 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-24 20:10:29 +0200 |
| commit | d704b029c93adec24c3d2556974e8947b15ad2a0 (patch) | |
| tree | f9d505ff963cd2ef8af74fb5e38fe95a264ea3b0 | |
| parent | b4ab3e4b5ed6346a0a05dc0c43bf9bcb5e892e1d (diff) | |
| download | readline-incdec-d704b029c93adec24c3d2556974e8947b15ad2a0.tar.bz2 | |
Rename `incdec.pl.m4` to `incdec.m4.pl`
Like we did for the `incdec.m4` Bash include, rename the Perl M4 file to
give it a `.pl` extension so we get Perl syntax highlighting. Similarly
define an include macro so quoting doesn't mess up highlighting.
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | incdec.m4.pl (renamed from incdec.pl.m4) | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -5,9 +5,9 @@ all: incdec incdec: incdec.m4.bash incdec.pl m4 --define="INCLUDE_INCDEC_PL=include(\`incdec.pl')dnl" $< > $@ -incdec.pl: incdec.pl.m4 incdec.pm +incdec.pl: incdec.m4.pl incdec.pm sed -n '/sub incdec {/,/^}/p' incdec.pm > incdec.sub.pl - m4 $< > $@ + m4 --define="INCLUDE_INCDEC_SUBROUTINE=include(\`incdec.sub.pl')dnl" $< > $@ rm incdec.sub.pl diff --git a/incdec.pl.m4 b/incdec.m4.pl index aacb095..46e9a7e 100644 --- a/incdec.pl.m4 +++ b/incdec.m4.pl @@ -1,4 +1,4 @@ -include(`incdec.sub.pl')dnl +INCLUDE_INCDEC_SUBROUTINE my $output = incdec($line, $increment_by, $point_position, $backward); print $output; |
