devongovett / atom-jade

Jade TextMate bundle converted for Atom
51 stars 26 forks source link

Syntax coloring off after including a mixin #46

Open escargotprodige opened 9 years ago

escargotprodige commented 9 years ago

capture d ecran de 2015-04-30 10 38 20

interpolack commented 9 years ago

Problem may be centered around include. Syntax coloring is off for the remainder of the document after the following statement, for example:

style
    include style.css

However, if an empty line is placed before the above statement, this prevents the problem.

alexchandel commented 7 years ago

The problem is not the include. It's the bare mixin call. This breaks

html
    +head
    head
        title
            foo

However, adding a line break after it:

html
    +head

    head
        title
            foo

or closing the parentheses:

html
    +head()
    head
        title
            foo

fixes highlighting.