pugjs / pug-lint

An unopinionated and configurable linter and style checker for Pug
ISC License
228 stars 51 forks source link

Wrong "Invalid attribute sparator found" #72

Closed Ulrikop closed 8 years ago

Ulrikop commented 8 years ago

Hi, I have got a strange "Invalid attribute sparator found" error with the following rule:

"validateAttributeSeparator": { "separator": ", ", "multiLineSeparator": ",\n  " }

At line 5 of the following pug-file it throws that error (I have minified the content, so that only the relevant part without overhead is available):

div
  div
    div
  div(a="foo", b="bar",
    c="batz")

If the div with the multiline attribute is at the most left side, no error is thrown:

div
  div
    div
div(a="foo", b="bar",
  c="batz")

If one of the other divs, except the root one, is not there, than it is ok too:

div
  div
  div(a="foo", b="bar",
    c="batz")

or

div
  div(a="foo", b="bar",
    c="batz")