Skip to content

Commit

Permalink
Convert to valid CoffeeScript.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyoung committed Aug 12, 2015
1 parent ca67a9f commit 520edf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
7 changes: 4 additions & 3 deletions lib/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions src/parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ class Parser

parser = new JadeParser string, file, @options

while (true)
try {
if((type = parser.peek().type) === 'eos') {
break;
}
} catch (e) {
e.message += file;
throw e;
}
while true
try
break if (type = parser.peek().type) is 'eos'
catch e
e.message += file
throw e

switch type
when 'extends', 'include'
path = parser.expect(type).val.trim()
Expand Down

0 comments on commit 520edf5

Please sign in to comment.