LearnBoost/stylus — Issue #458: ParseError Id Selector
Author: quangv
Created: 2011-11-08 22:49:21+00:00
State: open

**Source: test.styl**

#bin
background green

Command: **stylus test.styl**

*Gives me error:*

/usr/local/lib/node_modules/stylus/bin/stylus:520
throw err;
^
ParseError: test.styl:1
> 1| #bin
2| background green
3|

expected "indent", got "in"

at Parser.error (/usr/local/lib/node_modules/stylus/lib/parser.js:157:11)
at Parser.expect (/usr/local/lib/node_modules/stylus/lib/parser.js:185:12)
at Parser.block (/usr/local/lib/node_modules/stylus/lib/parser.js:576:12)
at Parser.selector (/usr/local/lib/node_modules/stylus/lib/parser.js:1049:24)
at Parser.stmt (/usr/local/lib/node_modules/stylus/lib/parser.js:542:27)
at Parser.statement (/usr/local/lib/node_modules/stylus/lib/parser.js:438:21)
at Parser.parse (/usr/local/lib/node_modules/stylus/lib/parser.js:136:23)
at Renderer.render (/usr/local/lib/node_modules/stylus/lib/renderer.js:50:22)
at /usr/local/lib/node_modules/stylus/bin/stylus:513:15
at [object Object]. (fs.js:107:5)

This parser error doesn't occur in version 0.17.0, but occurs in version 0.18.0 onward, the specific commit that caused this bug is in between the two versions. I'm in the process of drilling this bug down now.