This properly handles lone quote characters
within TEXT ... ENDTEXT blocks, which would
otherwise interpret the rest of the PRG file
as one giant string.
Example
Even Github gets this one somewhat wrong.
PROCEDURE hi
hi
ENDPROC
INSERT H TO
TEXT TO dsakldjlakj
"ok sick
Even t
ENDTEXT
v = "hi there"
m.somevar = "Now imagine there are 7000 lines here. I'd like for the syntax highlighting to work after ENDTEXT :)"
Note
This does make the parsing of the keywords after TEXT a bit less intelligent, but I think that's a small price to pay for the cases which this fixes.
This properly handles lone quote characters within TEXT ... ENDTEXT blocks, which would otherwise interpret the rest of the PRG file as one giant string.
Example
Even Github gets this one somewhat wrong.
Note
This does make the parsing of the keywords after TEXT a bit less intelligent, but I think that's a small price to pay for the cases which this fixes.