@@ -4,7 +4,7 @@ CodeMirror.defineMode("rust", function() {
4
4
"if" : "if-style" , "while" : "if-style" , "loop" : "if-style" , "else" : "else-style" ,
5
5
"do" : "else-style" , "ret" : "else-style" , "fail" : "else-style" ,
6
6
"break" : "atom" , "cont" : "atom" , "const" : "let" , "resource" : "fn" ,
7
- "let" : "let" , "fn" : "fn" , "for" : "for" , "alt" : "alt" , "iface " : "iface " ,
7
+ "let" : "let" , "fn" : "fn" , "for" : "for" , "alt" : "alt" , "trait " : "trait " ,
8
8
"impl" : "impl" , "type" : "type" , "enum" : "enum" , "class" : "atom" , "mod" : "mod" ,
9
9
"as" : "op" , "true" : "atom" , "false" : "atom" , "assert" : "op" , "check" : "op" ,
10
10
"claim" : "op" , "extern" : "ignore" , "unsafe" : "ignore" , "import" : "else-style" ,
@@ -179,7 +179,7 @@ CodeMirror.defineMode("rust", function() {
179
179
if ( type == "type" ) return cont ( pushlex ( "stat" ) , tydef , endstatement , poplex , block ) ;
180
180
if ( type == "enum" ) return stat_of ( tagdef ) ;
181
181
if ( type == "mod" ) return stat_of ( mod ) ;
182
- if ( type == "iface " ) return stat_of ( iface ) ;
182
+ if ( type == "trait " ) return stat_of ( trait ) ;
183
183
if ( type == "impl" ) return stat_of ( impl ) ;
184
184
if ( type == "open-attr" ) return cont ( pushlex ( "]" ) , commasep ( expression , "]" ) , poplex ) ;
185
185
if ( type == "ignore" || type . match ( / [ \] \) ; , ] / ) ) return cont ( block ) ;
@@ -291,9 +291,9 @@ CodeMirror.defineMode("rust", function() {
291
291
if ( type == "{" ) return cont ( pushlex ( "}" ) , block , poplex ) ;
292
292
return pass ( ) ;
293
293
}
294
- function iface ( type ) {
295
- if ( type == "name" ) { cx . marked = "def" ; return cont ( iface ) ; }
296
- if ( content == "<" ) return cont ( typarams , iface ) ;
294
+ function trait ( type ) {
295
+ if ( type == "name" ) { cx . marked = "def" ; return cont ( trait ) ; }
296
+ if ( content == "<" ) return cont ( typarams , trait ) ;
297
297
if ( type == "{" ) return cont ( pushlex ( "}" ) , block , poplex ) ;
298
298
return pass ( ) ;
299
299
}
0 commit comments