Skip to content

Commit 089877f

Browse files
committed
doc: tag->enum in codemirror-rust.js
1 parent 0a347e7 commit 089877f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/lib/codemirror-rust.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CodeMirror.defineMode("rust", function() {
55
"do": "else-style", "ret": "else-style", "fail": "else-style",
66
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
77
"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",
99
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
1010
"claim": "op", "native": "ignore", "unsafe": "ignore", "import": "else-style",
1111
"export": "else-style", "copy": "op", "log": "op", "log_err": "op",
@@ -177,7 +177,7 @@ CodeMirror.defineMode("rust", function() {
177177
if (type == "let") return stat_of(letdef1, "let");
178178
if (type == "fn") return stat_of(fndef);
179179
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);
181181
if (type == "mod") return stat_of(mod);
182182
if (type == "iface") return stat_of(iface);
183183
if (type == "impl") return stat_of(impl);

0 commit comments

Comments
 (0)