Skip to content

Commit

Permalink
Merge pull request #68 from drslump/allow-spaces-and-comments-after-c…
Browse files Browse the repository at this point in the history
…ontinuation

Allow spaces and comments after continuation
  • Loading branch information
bamboo committed Oct 21, 2013
2 parents 58f26c9 + d4258ef commit 6b56693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/Boo.Lang.Parser/boo.g
Original file line number Diff line number Diff line change
Expand Up @@ -3436,10 +3436,16 @@ protected ID_SUFFIX:
;
LINE_CONTINUATION:
'\\'! NEWLINE
'\\'
(
NEWLINE
| (' ' | '\t')+
| SL_COMMENT
| ML_COMMENT
)+
{ $setType(Token.SKIP); }
;
INT :
("0x"(HEXDIGIT)+)(('l' | 'L') { $setType(LONG); })? |
DIGIT_GROUP
Expand Down
10 changes: 8 additions & 2 deletions src/Boo.Lang.Parser/wsaboo.g
Original file line number Diff line number Diff line change
Expand Up @@ -3167,9 +3167,15 @@ protected ID_SUFFIX:
;
LINE_CONTINUATION:
'\\'! NEWLINE
'\\'
(
NEWLINE
| (' ' | '\t')+
| SL_COMMENT
| ML_COMMENT
)+
{ $setType(Token.SKIP); }
;
;
INT :
("0x"(HEXDIGIT)+)(('l' | 'L') { $setType(LONG); })? |
Expand Down

0 comments on commit 6b56693

Please sign in to comment.