genoma / language-pug

A Pug (was Jade) syntax highlighting for Atom, derived from https://github.com/davidrios/jade-tmbundle
MIT License
26 stars 8 forks source link

Statements in the next line of 'else' cannot be highlighted in atom. #2

Open Dafrok opened 8 years ago

Dafrok commented 8 years ago

pug-template:

if foo
  a foo
else
  a bar // cannot be highlighted
BuonOmo commented 8 years ago

I have the same bug, it seams to because of the absence operand after else: I guessed it because there is no such issue with else if. I tried to fix it modifying this line. However I’m not sure it can change anything because I haven’t got a proper dev environment for this project. To be continued..

jakubrpawlowski commented 7 years ago

I have the same issue. It's very annoying because I work with express and I have a lot of conditionals in my views. Any workarounds?

campbellgoe commented 6 years ago

+1 the first line after an else is greyed out, whereas consecutive lines are correctly highlighted.

A possible workaround could be making the else statement else if(true) which should mean the same thing as else. However, it pains me to edit code unecessarily like that just because of failures of syntax highlighting.