]> git.saurik.com Git - bison.git/commit - ChangeLog
Implement the FIXME that ends an user action with a semicolon
authorDi-an Jan <dianj@freeshell.org>
Mon, 8 Dec 2008 05:54:45 +0000 (21:54 -0800)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 17 Apr 2009 04:06:19 +0000 (00:06 -0400)
commit42f4393a72c808c6858b29a2343884f12c187e19
treeba3b6c1a42fdb0340992e8675827427af6113a50
parentbd5df716a33f8c707dbba101f78dedf5feb9e9d5
Implement the FIXME that ends an user action with a semicolon
if it seems necessary.

* src/scan-code.l (flex rules section): Flag cpp directive from
any `#' to the first unescaped end-of-line.  Semicolon is not
needed after `;', `{', '}', or cpp directives and is needed after
any other token (whitespaces and comments have no effect).
* tests/actions.at (Fix user actions without a trailing semicolon):
New test.
* tests/input.at (AT_CHECK_UNUSED_VALUES): Add semicolons to
to make user actions complete statements.
Adjust column numbers in error messages.
* tests/regression.at (Fix user actions without a trailing semicolon):
Remove.  Covered by new test.
(cherry picked from commit e8cd1ad655bcc704b06fb2f191dc3ac1df32b796)
ChangeLog
src/scan-code.l
tests/actions.at
tests/input.at
tests/regression.at