Documentation on Grammars -- applyEndPatternLast


#1

Would anyone point me to where I could get some information on this applyEndPatternLast in the Grammars.cson? Thanks!


#2

In which grammar are you finding an example of this?


#3

in these two packages:

  • language-groovy
  • language-groovy-cloned-from-java

#4

So, this is not something that appears in the recommended grammar guide, nor in any of the resources I found, but, lo and behold, it’s in first-mate, which describes it as such. So it’s a flag that does precisely what it says: it applies the end pattern after the other patterns in the rule being assessed. What I’m not sure about is the specific use case.