greedy property

bool greedy
final

Whether this rule matches across tokens claimed by earlier rules (Prism greedy). A greedy match that starts in plain text swallows the tokens it overlaps, and the plain remainder is re-tokenized by the earlier rules: a string containing # or // stays a string even though the comment rule ran first. A non-greedy rule only matches within plain text.

Implementation

final bool greedy;