author | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:46 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:46 (UTC) |
commit | f2ddc6833252f106cf9aa589bc13216ba25ee4e6 (patch) (unidiff) | |
tree | 70187b30b79a3c850e8017337d1d1dc4918a06e5 /lib/sitecing_parser.ll | |
parent | 67b825ecb491066424b7e48f864c0b76b4156b28 (diff) | |
download | sitecing-f2ddc6833252f106cf9aa589bc13216ba25ee4e6.zip sitecing-f2ddc6833252f106cf9aa589bc13216ba25ee4e6.tar.gz sitecing-f2ddc6833252f106cf9aa589bc13216ba25ee4e6.tar.bz2 |
bugfix: comments weren't discarded in "derive" line
-rw-r--r-- | lib/sitecing_parser.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sitecing_parser.ll b/lib/sitecing_parser.ll index 9514ce4..4fd6709 100644 --- a/lib/sitecing_parser.ll +++ b/lib/sitecing_parser.ll | |||
@@ -431,33 +431,33 @@ NOIDCHAR [^A-Za-z0-9_] | |||
431 | ECHO; | 431 | ECHO; |
432 | decl += M().output; | 432 | decl += M().output; |
433 | modi.pop_front(); | 433 | modi.pop_front(); |
434 | BEGIN(INITIAL); | 434 | BEGIN(INITIAL); |
435 | } | 435 | } |
436 | <IMPLLINE>\n{ | 436 | <IMPLLINE>\n{ |
437 | ECHO; | 437 | ECHO; |
438 | impl += M().output; | 438 | impl += M().output; |
439 | modi.pop_front(); | 439 | modi.pop_front(); |
440 | BEGIN(INITIAL); | 440 | BEGIN(INITIAL); |
441 | } | 441 | } |
442 | <CLASSLINE>\n{ | 442 | <CLASSLINE>\n{ |
443 | class_name = M().output; | 443 | class_name = M().output; |
444 | modi.pop_front(); | 444 | modi.pop_front(); |
445 | BEGIN(INITIAL); | 445 | BEGIN(INITIAL); |
446 | } | 446 | } |
447 | <CLASSLINE,DECLLINE,IMPLLINE,VARLINE,VARINIT,IMPORTLINE,IMPORTCOMPONENT,CODEMETHODLINE,CODEMETHODARGS,INLINE,METHODLINE,METHODARGS,DECLBLOCK,IMPLBLOCK,CONSTRUCTOR,DESTRUCTOR,CODEMETHODBLOCK,CODELINE,CODEBLOCK,PRAGMALINE>{ | 447 | <CLASSLINE,DECLLINE,IMPLLINE,VARLINE,VARINIT,IMPORTLINE,IMPORTCOMPONENT,CODEMETHODLINE,CODEMETHODARGS,INLINE,METHODLINE,METHODARGS,DECLBLOCK,IMPLBLOCK,CONSTRUCTOR,DESTRUCTOR,CODEMETHODBLOCK,CODELINE,CODEBLOCK,PRAGMALINE,DERIVELINE,DERIVECOMPONENT>{ |
448 | "/*"{ | 448 | "/*"{ |
449 | yy_push_state(SLASHSTAR_COMMENT); | 449 | yy_push_state(SLASHSTAR_COMMENT); |
450 | if(!M().devour_comments()) { | 450 | if(!M().devour_comments()) { |
451 | ECHO; | 451 | ECHO; |
452 | } | 452 | } |
453 | } | 453 | } |
454 | "//"{ | 454 | "//"{ |
455 | yy_push_state(SLASHSLASH_COMMENT); | 455 | yy_push_state(SLASHSLASH_COMMENT); |
456 | if(!M().devour_comments()) { | 456 | if(!M().devour_comments()) { |
457 | ECHO; | 457 | ECHO; |
458 | } | 458 | } |
459 | } | 459 | } |
460 | \" { | 460 | \" { |
461 | yy_push_state(STRING); | 461 | yy_push_state(STRING); |
462 | ECHO; | 462 | ECHO; |
463 | } | 463 | } |