]> 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 e1bda045d3d80213164549b2c0dc029326a70701..2f264f5f14e1860692a7345ec0b8da14e45d4be7 100644 (file)
@@ -104,7 +104,7 @@ static void unexpected_newline (boundary, char const *);
 %x SC_BRACKETED_ID SC_RETURN_BRACKETED_ID
 
 letter   [.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]
-id       -*(-|{letter}({letter}|[-0-9])*)
+id       {letter}({letter}|[-0-9])*
 directive %{id}
 int      [0-9]+