setWordChars method

  1. @override
void setWordChars(
  1. int fromSymbol,
  2. int toSymbol,
  3. bool enable
)
override

Establish characters in the given range as valid characters for part of a word after the first character.

Note that the tokenizer must determine which characters are valid as the beginning character of a word.

  • fromSymbol First character index of the interval.
  • toSymbol Last character index of the interval.
  • enable true if this state should use characters in the given range.

Implementation

@override
void setWordChars(int fromSymbol, int toSymbol, bool enable) {
  _map.addInterval(fromSymbol, toSymbol, enable);
}