tryMatch method

  1. @override
bool tryMatch(
  1. InlineParser parser, [
  2. int? startMatchPos
])
override

Tries to match at the parser's current position.

The parser's position can be overriden with startMatchPos. Returns whether or not the pattern successfully matched.

Implementation

@override
bool tryMatch(InlineParser parser, [int? startMatchPos]) {
  return super.tryMatch(parser, parser.pos > 0 ? parser.pos - 1 : 0);
}