Subtiel foutje met haakjes tellen, twee regels moeten omgedraaid worden.
This commit is contained in:
parent
a5b6ef2a18
commit
953ac2b514
|
@ -37,8 +37,8 @@ int special, n_haakjes;
|
|||
{identifier} return( IDENTIFIER);
|
||||
|
||||
|
||||
"(" { BEGIN CON; n_haakjes = 1; yymore();}
|
||||
<CON>[^()]*"(" { n_haakjes++; yymore();}
|
||||
"(" { BEGIN CON; n_haakjes = 1; yymore();}
|
||||
<CON>[^()]*")" { if ( n_haakjes == 1) {
|
||||
BEGIN 0;
|
||||
return( CONDITION);
|
||||
|
|
Loading…
Reference in a new issue