germtb / atom-limelight

Atom emulator of Limelight.vim
MIT License
1 stars 0 forks source link

Doesn't handle comments within functions... #1

Open NoahDavidATL opened 7 years ago

NoahDavidATL commented 7 years ago

comments-in-fn comments-in-fn-works

As you can see, having / comments / inside a function prevent the entire function from being highlighted by limelight.

germtb commented 6 years ago

Interesting. It happens because apparently comments are not considered in rowRangeForParagraphAtBufferRow. To fix it I would need to create my own rowRangeForParagraphAtBufferRow, which is something that I was considering and might tackle when I find some time.