coala / coala-bears

Bears for coala
https://coala.io/
GNU Affero General Public License v3.0
294 stars 580 forks source link

Pygmented AnnotationBear #2092

Open userzimmermann opened 7 years ago

userzimmermann commented 7 years ago

Instead of further complicating the AnnotationBear with https://github.com/coala/coala-bears/pull/1332 it should first be simplified by using Pygments lexers instead of custom parsing for extraction of comment and string ranges from source code

This is also related to https://github.com/coala/coala/issues/4775

gitmate-bot commented 7 years ago

GitMate.io thinks the contributor most likely able to help you is @jayvdb.

userzimmermann commented 7 years ago

https://gist.github.com/userzimmermann/f43c4d1ae001ddc78bca5ce827bca8f1 shows my proof of concept for this

@aptrishu @Makman2 What do you think about it?

Makman2 commented 7 years ago

That looks good, so in principle we use step-by-step pattern matching to assign to the parsed ast elements of pygments our SourceRange and other classes. I'm fine with that :)

gitmate-bot commented 6 years ago

This issue seems stale!

@userzimmermann please reassign yourself if you're still working on this.

(Powered by GitMate.io)

bkhanale commented 5 years ago

This issue is reserved under the GSoC project Improve Generic Bear Quality.