We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce:
In Stylus, functions and declarations can be written with or without the curly braces. Hashes do.
body { background: red; } hash = { foo: bar; } add(a, b) { a + b; }
In other languages, I can also put the first brace on a newline, but not here in Stylus. This issue won't occur for declarations.
/* This works */ body { background: red; } /* These don't work */ hash = { foo: bar; } add(a, b) { a + b; }
Current behaviour:
Stylus will throw an error this.nodes[0] is undefined for functions and Expected "{" but found "" for hashes.
this.nodes[0] is undefined
Expected "{" but found ""
Expected behaviour:
Stylus won't throw any issue and I can declare functions and hashes as usual.
Environment information:
stylus
0.58.1
nodejs
I use the Stylus extension version 1.5.38 for Firefox.
1.5.38
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To reproduce:
In Stylus, functions and declarations can be written with or without the curly braces. Hashes do.
In other languages, I can also put the first brace on a newline, but not here in Stylus. This issue won't occur for declarations.
Current behaviour:
Stylus will throw an error
this.nodes[0] is undefined
for functions andExpected "{" but found ""
for hashes.Expected behaviour:
Stylus won't throw any issue and I can declare functions and hashes as usual.
Environment information:
stylus
version:0.58.1
nodejs
version: n/aI use the Stylus extension version
1.5.38
for Firefox.The text was updated successfully, but these errors were encountered: