]> git.saurik.com Git - bison.git/commit - tests/input.at
factor the handling of m4 escaping
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 27 Jul 2012 09:22:22 +0000 (11:22 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 27 Jul 2012 10:54:31 +0000 (12:54 +0200)
commit263137264fa5e5a9fb03bc75f941c14bedfe47c4
treea7850a0b988b87aae437a09f460ab23d408dc101
parente20e6a50d57ce0fb1a51a4b27cf6c8cfdd64bf99
factor the handling of m4 escaping

The conversion from @ to @@ and so forth is coded is too many
different places.  Factor, a bit.

* src/scan-code.l: Instead of duplicating the logic of obstack_escape,
use it.
It sure is less efficient, but the cost is negligible.
This allows to factor rules that are alike.
And to factor some start-condition clauses.
* tests/input.at (Stray $ or @): New.
* NEWS: Document it.
NEWS
src/scan-code.l
tests/input.at