positionFromMark returns a position spanning from the last mark to the current position.
(mtaillex mtailLexer)
| 186 | |
| 187 | // positionFromMark returns a position spanning from the last mark to the current position. |
| 188 | func positionFromMark(mtaillex mtailLexer) position.Position { |
| 189 | tp := tokenpos(mtaillex) |
| 190 | mp := markedpos(mtaillex) |
| 191 | return *position.Merge(&mp, &tp) |
| 192 | } |
| 193 | |
| 194 | //line yacctab:1 |
| 195 | var mtailExca = [...]int{ |