Skip to content

Commit

Permalink
A couple endline fixes in the lexer.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 13, 2009
1 parent 5c14fc6 commit 340a522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mojoshader_lexer.re
Expand Up @@ -62,7 +62,7 @@ scanner_loop:
IS = [uUlL]*;
ESC = [\\] ([abfnrtv?'"\\] | "x" H+ | O+);
PP = "#" [ \t]*;
NEWLINE = "\r\n" | "\r" | "\n";
NEWLINE = ("\r\n" | "\r" | "\n");
WHITESPACE = [ \t\v\f]+;
*/

Expand All @@ -73,13 +73,13 @@ scanner_loop:
L (L|D)* { RET(TOKEN_IDENTIFIER); }
("0" [xX] H+ IS?) | ("0" D+ IS?) | (D+ IS?) |
(['] (ESC|any\[\n\\'])* ['])
(['] (ESC|any\[\r\n\\'])* ['])
{ RET(TOKEN_INT_LITERAL); }
(D+ E FS?) | (D* "." D+ E? FS?) | (D+ "." D* E? FS?)
{ RET(TOKEN_FLOAT_LITERAL); }
(["] (ESC|any\[\n\\"])* ["])
(["] (ESC|any\[\r\n\\"])* ["])
{ RET(TOKEN_STRING_LITERAL); }
">>=" { RET(TOKEN_RSHIFTASSIGN); }
Expand Down

0 comments on commit 340a522

Please sign in to comment.