Sublime Forum

applyEndPatternLast does not appear in any documentation

#1

I’m trying Sublime Text 3 since two days. I was to create a syntax definition for which there is no already existing definition (a confidential language with many peculiarities, named ATS). I wanted to study some already existing language definitions for a start, when I noticed an applyEndPatternLast key whose value may be 1 at some places (like in the Pascal language definition). I was surprised, as I was not remembering I’ve ever seen it in both documentation, docs.sublimetext.info/en/latest/index.html .

So this basic question: is it documented? If it is, then where, and it is not, then why? I could just find this page, which explains it a bit: manual.macromates.com/en/language_grammars , but not better.

P.S. Would be nice to lower the licence’s price … when revenues comes from ads on websites, 70$ is about the whole revenues for a few months (two to three months, for me), such a price is not accessible to every one (yes, I know, that’s not a technical issue, but that’s just a P.S. :stuck_out_tongue: ).

0 Likes

#2

I only learned about “applyEndPatternLast” a bit less than a year ago from crawling a syntax definition of someone else and haven’t added it to the unofficial docs yet. There was no documentation about it in the textmate docs either, which was kind of surprising to me, but I verified that it works just well in Sublime Text. The key is also considered for conversion to the .sublime-syntax format, where this is a much easier to use with the context concept.

So yeah, I take part of the blame on me. (I did add it to our roadmap though: trello.com/c/Ldhvzz8B/2-revise- … ef-section)

Not going to comment on other aspects of the post.

0 Likes

#3

That wasn’t a blame :blush: , just that I was surprised this looks used at so many places, while not documented, that’s all.

Thanks for the future update to the unofficial documentations and for your care.

0 Likes