* gengtype-lex.l: Allow declarations to be indented.

From-SVN: r126615
This commit is contained in:
Andreas Schwab 2007-07-13 09:12:13 +00:00 committed by Andreas Schwab
parent a2bef74c1b
commit 36f568c387
2 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2007-07-13 Andreas Schwab <schwab@suse.de>
* gengtype-lex.l: Allow declarations to be indented.
2007-07-12 Geoffrey Keating <geoffk@apple.com>
* ginclude/tgmath.h: New.

View File

@ -65,36 +65,36 @@ EOID [^[:alnum:]_]
/* Things we look for in skipping mode: */
<INITIAL>{
^typedef/{EOID} {
^{HWS}typedef/{EOID} {
BEGIN(in_struct);
return TYPEDEF;
}
^struct/{EOID} {
^{HWS}struct/{EOID} {
BEGIN(in_struct);
return STRUCT;
}
^union/{EOID} {
^{HWS}union/{EOID} {
BEGIN(in_struct);
return UNION;
}
^extern/{EOID} {
^{HWS}extern/{EOID} {
BEGIN(in_struct);
return EXTERN;
}
^static/{EOID} {
^{HWS}static/{EOID} {
BEGIN(in_struct);
return STATIC;
}
^DEF_VEC_[OP]/{EOID} {
^{HWS}DEF_VEC_[OP]/{EOID} {
BEGIN(in_struct);
return DEFVEC_OP;
}
^DEF_VEC_I/{EOID} {
^{HWS}DEF_VEC_I/{EOID} {
BEGIN(in_struct);
return DEFVEC_I;
}
^DEF_VEC_ALLOC_[IOP]/{EOID} {
^{HWS}DEF_VEC_ALLOC_[IOP]/{EOID} {
BEGIN(in_struct);
return DEFVEC_ALLOC;
}
@ -186,7 +186,7 @@ EOID [^[:alnum:]_]
"unterminated comment or string; unexpected EOF");
}
^"#define"{WS}"GTY(" /* do nothing */
^{HWS}"#"{HWS}"define"{WS}"GTY(" /* do nothing */
{WS}"GTY"{WS}?"(" {
error_at_line (&lexer_line, "stray GTY marker");
}