]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
Fix minor problems encountered by a fresh bootstrap.
[bison.git] / src / scan-gram.l
index d7606d928c1110e10599e1e5083e2fbdd2bed3b6..e1bda045d3d80213164549b2c0dc029326a70701 100644 (file)
@@ -103,8 +103,8 @@ static void unexpected_newline (boundary, char const *);
  /* Bracketed identifiers support. */
 %x SC_BRACKETED_ID SC_RETURN_BRACKETED_ID
 
-letter   [-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]
-id       {letter}({letter}|[0-9])*
+letter   [.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]
+id       -*(-|{letter}({letter}|[-0-9])*)
 directive %{id}
 int      [0-9]+