@@ -5,7 +5,7 @@ CodeMirror.defineMode("rust", function() {
5
5
"do" : "else-style" , "ret" : "else-style" , "fail" : "else-style" ,
6
6
"break" : "atom" , "cont" : "atom" , "const" : "let" , "resource" : "fn" ,
7
7
"let" : "let" , "fn" : "fn" , "for" : "for" , "alt" : "alt" , "iface" : "iface" ,
8
- "impl" : "impl" , "type" : "type" , "tag " : "tag " , "mod" : "mod" ,
8
+ "impl" : "impl" , "type" : "type" , "enum " : "enum " , "mod" : "mod" ,
9
9
"as" : "op" , "true" : "atom" , "false" : "atom" , "assert" : "op" , "check" : "op" ,
10
10
"claim" : "op" , "native" : "ignore" , "unsafe" : "ignore" , "import" : "else-style" ,
11
11
"export" : "else-style" , "copy" : "op" , "log" : "op" , "log_err" : "op" ,
@@ -177,7 +177,7 @@ CodeMirror.defineMode("rust", function() {
177
177
if ( type == "let" ) return stat_of ( letdef1 , "let" ) ;
178
178
if ( type == "fn" ) return stat_of ( fndef ) ;
179
179
if ( type == "type" ) return cont ( pushlex ( "stat" ) , tydef , endstatement , poplex , block ) ;
180
- if ( type == "tag " ) return stat_of ( tagdef ) ;
180
+ if ( type == "enum " ) return stat_of ( tagdef ) ;
181
181
if ( type == "mod" ) return stat_of ( mod ) ;
182
182
if ( type == "iface" ) return stat_of ( iface ) ;
183
183
if ( type == "impl" ) return stat_of ( impl ) ;
0 commit comments