I am working on a new mode for a language that has many quirks.
In the token() function, I’m gathering meta information into the state object and this object is nicely available with the lineInfo() method; however, it is not available until the line has been “seen” by CM.
I have been searching for a method to cause the entire document to go through the token() process so that the meta information is collected. And, NO, I do not wish to tell my users to scroll to the bottom and then run the indention routine!
I am not certain that our good friend Marijn had BASIC in mind when creating this wonderful product. QMBASIC has a challenging syntax for indentation.
Any help is always appreciated!
(yes, I am American…)