mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
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:
@@ -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]+
|
||||
|
||||
|
||||
Reference in New Issue
Block a user