]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
Do not allow identifiers that start with a dash.
[bison.git] / src / scan-gram.l
index a40aadeaf509406439861a6997fbaecfd4873df6..83d76506a85a5b5092b57a32a9122de2bf3a9a55 100644 (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]+