matches method

bool matches(
  1. String text
)

Check if text occurs at position in document.

Implementation

bool matches(String text) {
	return peek(text.length) == text;
}