about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCarol Nichols <carol.nichols@gmail.com>2015-05-05 19:29:58 -0400
committerCarol Nichols <carol.nichols@gmail.com>2015-05-05 19:47:50 -0400
commit1ca9ed61d62b529aa403229b0a23dac69a091fe3 (patch)
tree5b2874622789859967edc0170fe789c32c707cc3
parentcdb6e1e15f691599b15a4d474952f38c7381a964 (diff)
Declare other tokens used later in the reference grammar
There were some tokens used in the grammar but not declared. Antlr
doesn't really seem to care and happily uses them, but they appear in
RustLexer.tokens in a potentially-unexpected order.
-rw-r--r--src/grammar/RustLexer.g46
1 files changed, 3 insertions, 3 deletions
diff --git a/src/grammar/RustLexer.g4 b/src/grammar/RustLexer.g4
index 5dcf0f6935f..f062d33f25e 100644
--- a/src/grammar/RustLexer.g4
+++ b/src/grammar/RustLexer.g4
@@ -12,10 +12,10 @@ tokens {
     MINUS, STAR, SLASH, PERCENT, CARET, AND, OR, SHL, SHR, BINOP,
     BINOPEQ, AT, DOT, DOTDOT, DOTDOTDOT, COMMA, SEMI, COLON,
     MOD_SEP, RARROW, FAT_ARROW, LPAREN, RPAREN, LBRACKET, RBRACKET,
-    LBRACE, RBRACE, POUND, DOLLAR, UNDERSCORE, LIT_CHAR,
+    LBRACE, RBRACE, POUND, DOLLAR, UNDERSCORE, LIT_CHAR, LIT_BYTE,
     LIT_INTEGER, LIT_FLOAT, LIT_STR, LIT_STR_RAW, LIT_BINARY,
-    LIT_BINARY_RAW, IDENT, LIFETIME, WHITESPACE, DOC_COMMENT,
-    COMMENT, SHEBANG
+    LIT_BINARY_RAW, QUESTION, IDENT, LIFETIME, WHITESPACE, DOC_COMMENT,
+    COMMENT, SHEBANG, UTF8_BOM
 }
 
 import xidstart , xidcontinue;