summaryrefslogtreecommitdiff
path: root/bnf/rust.lex
diff options
context:
space:
mode:
Diffstat (limited to 'bnf/rust.lex')
-rw-r--r--bnf/rust.lex2
1 files changed, 2 insertions, 0 deletions
diff --git a/bnf/rust.lex b/bnf/rust.lex
index b79119cd..dc06d06a 100644
--- a/bnf/rust.lex
+++ b/bnf/rust.lex
@@ -53,6 +53,7 @@ ident_c [a-zA-Z_]
"->" { return THINARROW; }
"=>" { return FATARROW; }
"#![" { return SUPER_ATTR; }
+"#[" { return SUB_ATTR; }
"==" { return DOUBLEEQUAL; }
"!=" { return EXCLAMEQUAL; }
@@ -71,6 +72,7 @@ ident_c [a-zA-Z_]
"=" { return *yytext; }
"{"|"}" { return *yytext; }
"("|")" { return *yytext; }
+"["|"]" { return *yytext; }
"<" { return *yytext; }
">" { return *yytext; }
"," { return *yytext; }