Created attachment 1566 [details]
R script file with syntax highlight problem starting around line 151
The syntax highlighting in the editor sometimes inverts (thinks all text is in quotes) depending on the position of text in the editor. Scrolling towards the top often causes highlighting to revert to its proper form. This seems to happen in editor files with large blocks of quoted text, with the highlighting getting strange some point after the text block disappears offscreen.
In this file, the transition occurs when line 151 just starts to disappear off the top of the editor. This is 12 lines after the large block of text defining the stan model. If I add additional lines above the text, the transition is moved further down, always 12 lines after the block of text.
I'm using: R 3.0.2 GUI 1.62 Snow Leopard build (6558)