(minor) word slip
This commit is contained in:
parent
e4737db19f
commit
925408d08b
|
@ -25,7 +25,7 @@ fragment DIGIT : [0-9] ; // not a token by itself
|
||||||
|
|
||||||
## Lexical Modes
|
## Lexical Modes
|
||||||
|
|
||||||
Modes allow you to group lexical rules by context, such as inside and outside of XML tags. It’s like having multiple sublexers, one for context. The lexer can only return tokens matched by entering a rule in the current mode. Lexers start out in the so-called default mode. All rules are considered to be within the default mode unless you specify a mode command. Modes are not allowed within combined grammars, just lexer grammars. (See grammar `XMLLexer` from [Tokenizing XML](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference).)
|
Modes allow you to group lexical rules by context, such as inside and outside of XML tags. It’s like having multiple sublexers, one for each context. The lexer can only return tokens matched by entering a rule in the current mode. Lexers start out in the so-called default mode. All rules are considered to be within the default mode unless you specify a mode command. Modes are not allowed within combined grammars, just lexer grammars. (See grammar `XMLLexer` from [Tokenizing XML](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference).)
|
||||||
|
|
||||||
```
|
```
|
||||||
rules in default mode
|
rules in default mode
|
||||||
|
|
Loading…
Reference in New Issue