OSDN Git Service

* gengtype-lex.l (ID): Allow underscore as first character.
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2002 02:17:08 +0000 (02:17 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2002 02:17:08 +0000 (02:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56501 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gengtype-lex.l

index adf3fd1..e2c3fef 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * gengtype-lex.l (ID): Allow underscore as first character.
+
 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
index 73167f5..bd848a7 100644 (file)
@@ -48,7 +48,7 @@ update_lineno (l, len)
 
 %}
 
-ID     [[:alpha:]][[:alnum:]_]*
+ID     [[:alpha:]_][[:alnum:]_]*
 WS     [[:space:]]+
 IWORD  short|long|(un)?signed|char|int|HOST_WIDE_INT|bool|size_t
 ITYPE  {IWORD}({WS}{IWORD})*