Add `assert` keyword, remove old ones
1ef831c5c8629490422fc685db6eba26620e4e50
1 parent
2757cc27
static/js/hirad.js
+2 -2
| 7 | 7 | const selector = hirad || '.language-radiance'; |
|
| 8 | 8 | const keywords = [ |
|
| 9 | 9 | 'fn', 'pub', 'if', 'else', 'for', 'while', 'break', 'switch', 'match', |
|
| 10 | 10 | 'record', 'union', 'const', 'align', 'let', 'use', 'mod', 'case', |
|
| 11 | 11 | 'continue', 'return', 'true', 'false', 'loop', 'extern', 'panic', |
|
| 12 | - | 'device', 'register', 'bit', 'catch', 'throw', 'throws', 'test', |
|
| 12 | + | 'device', 'register', 'catch', 'throw', 'throws', |
|
| 13 | 13 | 'at', 'mut', 'nil', 'undefined', 'static', 'in', 'is', 'where', |
|
| 14 | 14 | 'as', 'and', 'or', 'xor', 'not', 'try', 'atomic', 'select', 'trait', |
|
| 15 | - | 'instance' |
|
| 15 | + | 'instance', 'assert' |
|
| 16 | 16 | ]; |
|
| 17 | 17 | const types = ['bool', 'u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', 'f32', 'void', 'opaque']; |
|
| 18 | 18 | ||
| 19 | 19 | // Syntax definition. |
|
| 20 | 20 | // |