]> git.lizzy.rs Git - rust.git/commit
Correct a typo in a declared token in the reference grammar
authorCarol Nichols <carol.nichols@gmail.com>
Tue, 5 May 2015 23:26:16 +0000 (19:26 -0400)
committerCarol Nichols <carol.nichols@gmail.com>
Tue, 5 May 2015 23:47:22 +0000 (19:47 -0400)
commitcdb6e1e15f691599b15a4d474952f38c7381a964
treea5c41f64a5c52b5f500e06e36da7bcfe4c2fa9c7
parenteae692e375cec222803efb7175c79fedc228eea9
Correct a typo in a declared token in the reference grammar

This appears to not have too much of a detrimental effect, but it
doesn't seem to be what is intended either.

antlr doesn't mind that `PLUS` isn't declared in `tokens` and happily
uses the `PLUS` that appears later in the file, but the generated
RustLexer.tokens had PLUS at the end rather than where it was intended:

NOT=10
TILDE=11
PLUT=12
MINUS=13
...
PLUS=56
src/grammar/RustLexer.g4