Revert "Simplify handling of '.' and '-' after unbracketed named references."

This reverts commit bf3e44fe46.

See discussion following
<http://lists.gnu.org/archive/html/bison-patches/2011-01/msg00030.html>.
This commit is contained in:
Joel E. Denny
2011-01-29 10:58:03 -05:00
parent fe3cae17a1
commit 676997e53b
7 changed files with 159 additions and 147 deletions

View File

@@ -118,9 +118,8 @@ static void unexpected_newline (boundary, char const *);
/* Bracketed identifiers support. */
%x SC_BRACKETED_ID SC_RETURN_BRACKETED_ID
/* A Bison identifier. Keep this synchronized with scan-code.l "id". */
letter [-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]
id {letter}({letter}|[0-9])*
letter [.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]
id -*(-|{letter}({letter}|[-0-9])*)
directive %{id}
int [0-9]+