visionmedia/jade — Issue #410: Comments & if/else Statements
Author: gasi
Created: 2011-11-21 22:02:57+00:00
State: open

//- case 1
if 42 === true
p yes
//- case 2
else
p no

gives me:

undefined:24
else
^^^^
SyntaxError: Unexpected token else
at Object.Function (unknown source)
at Object.compile (/usr/local/lib/node_modules/jade/lib/jade.js:161:8)
at Socket. (/usr/local/lib/node_modules/jade/bin/jade:84:19)
at Socket.emit (events.js:61:17)
at Socket._onReadable (net.js:658:51)
at IOWatcher.onReadable [as callback] (net.js:177:10)

Shouldn’t comments just be ignored?