Permalink
Browse files

Fixes #425: Compiler hangs when the last property isn't followed by s…

…emicolon at the end of the document
  • Loading branch information...
1 parent 0ca26c5 commit 662df02ce77d1d74ede014566a68b945094fac61 @tonistiigi committed May 30, 2012
Showing with 6 additions and 1 deletion.
  1. +2 −1 lib/parser.js
  2. +3 −0 test/cases/css.eos.css
  3. +1 −0 test/cases/css.eos.styl
View
@@ -422,7 +422,8 @@ Parser.prototype = {
, 'for'
, 'if'
, ';'
- , '}'].indexOf(this.lookahead(i).type))
+ , '}'
+ , 'eos'].indexOf(this.lookahead(i).type))
++i;
if ('indent' == this.lookahead(i).type)
View
@@ -0,0 +1,3 @@
+.c {
+ display: block;
+}
View
@@ -0,0 +1 @@
+.c { display: block }

0 comments on commit 662df02

Please sign in to comment.