Mercurial > urweb
diff src/urweb.lex @ 1590:60d438cdb3a5
Adjust for different ml-lex behavior between SML/NJ and MLton
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 05 Nov 2011 12:32:20 -0400 |
parents | 5530a8075b62 |
children | 1c9f8f06c1d6 |
line wrap: on
line diff
--- a/src/urweb.lex Sat Nov 05 11:33:59 2011 -0400 +++ b/src/urweb.lex Sat Nov 05 12:32:20 2011 -0400 @@ -416,7 +416,7 @@ <INITIAL> "structure" => (Tokens.STRUCTURE (pos yypos, pos yypos + size yytext)); <INITIAL> "signature" => (Tokens.SIGNATURE (pos yypos, pos yypos + size yytext)); <INITIAL> "struct" => (Tokens.STRUCT (pos yypos, pos yypos + size yytext)); -<INITIAL> "sig" => (if yypos = 2 then initialSig () else (); Tokens.SIG (pos yypos, pos yypos + size yytext)); +<INITIAL> "sig" => (if yypos <= 2 then initialSig () else (); Tokens.SIG (pos yypos, pos yypos + size yytext)); <INITIAL> "let" => (Tokens.LET (pos yypos, pos yypos + size yytext)); <INITIAL> "in" => (Tokens.IN (pos yypos, pos yypos + size yytext)); <INITIAL> "end" => (Tokens.END (pos yypos, pos yypos + size yytext));