Docstrings sometimes doesn't highlight
@Moosems:
If I have docstrings and I type them in line by line they don't highlight as such but if I paste it in then it is highlighted properly
This is due to it not rendering all at once because doing that every time an edit is made would be incredibly time expensive. The viewport-only tags may help alleviate the slowness of tagging all but overall could be slower. Tests into this idea will have to be some time. We could also just look for """ but that could lead to a myriad of other bugs.
Fixed in #20
Maybe we want to set up something to use highlight_area() when it detects things like this @rdbende. What do you think? This might not be worth the time but its always a bug I can tackle.
Yes, maybe if it detects a Comment.Multiline or Literal.String.Doc token, it should cleverly look around.
My worry is if there're multiple docstrings near each other.