|
14 | 14 | CodeMirror.defineMode("rust", function() { |
15 | 15 | var indentUnit = 4, altIndentUnit = 2; |
16 | 16 | var valKeywords = { |
17 | | - "if": "if-style", "while": "if-style", "else": "else-style", |
| 17 | + "if": "if-style", "while": "if-style", "loop": "else-style", "else": "else-style", |
18 | 18 | "do": "else-style", "ret": "else-style", "fail": "else-style", |
19 | 19 | "break": "atom", "cont": "atom", "const": "let", "resource": "fn", |
20 | 20 | "let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface", |
21 | 21 | "impl": "impl", "type": "type", "enum": "enum", "mod": "mod", |
22 | 22 | "as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op", |
23 | 23 | "claim": "op", "native": "ignore", "unsafe": "ignore", "import": "else-style", |
24 | 24 | "export": "else-style", "copy": "op", "log": "op", "log_err": "op", |
25 | | - "use": "op", "bind": "op", "self": "atom" |
| 25 | + "use": "op", "bind": "op", "self": "atom", "struct": "enum", |
26 | 26 | }; |
27 | 27 | var typeKeywords = function() { |
28 | 28 | var keywords = {"fn": "fn", "block": "fn", "obj": "obj"}; |
|
0 commit comments