expected "indent", got "outdent"

Jimmy Miller picture Jimmy Miller · Mar 22, 2012 · Viewed 7.1k times · Source
  ParseError: /Users/JMiller/Projects/multisport-momentum/public/stylesheets/style.styl:15

  11|     color #031634
  12| }
  13| a {
  14|     color font.color
> 15|     text-decoration none
  16| }
  17| 
  18| .header

  expected "indent", got "outdent"

What does this mean? It has something to do with whitespace? What whitespace? How do I fix this?

Answer

Linus Thiel picture Linus Thiel · Apr 2, 2012

The problem here is error reporting more than anything else. Dots . are not allowed in stylus variable names (nor mixin names), so renaming font.color to e.g. font-color will solve your problem.