highlight: Update Radiance grammar
cea31f6341301ca624cb4cbb0ee89f873b6b1c3d
1 parent
ec27a33e
crates/highlight/syntaxes/radiance.json
+2 -2
| 74 | 74 | ] |
|
| 75 | 75 | }, |
|
| 76 | 76 | "keywords": { |
|
| 77 | 77 | "patterns": [ |
|
| 78 | 78 | { |
|
| 79 | - | "match": "\\b(?:bit|bool|f32|i8|i16|i32|i64|opaque|u8|u16|u32|u64|void)\\b", |
|
| 79 | + | "match": "\\b(?:bit|bool|f32|Free|i8|i16|i32|i64|Linear|opaque|u8|u16|u32|u64|void)\\b", |
|
| 80 | 80 | "name": "storage.type.radiance" |
|
| 81 | 81 | }, |
|
| 82 | 82 | { |
|
| 83 | 83 | "match": "\\b(?:false|nil|true|undefined)\\b", |
|
| 84 | 84 | "name": "constant.language.radiance" |
|
| 85 | 85 | }, |
|
| 86 | 86 | { |
|
| 87 | - | "match": "\\b(?:align|and|as|assert|break|case|catch|constant|continue|else|export|fn|for|if|in|instance|instantiate|let|log|loop|match|mod|mut|not|or|panic|record|return|set|static|super|throw|throws|trait|try|union|use|while)\\b", |
|
| 87 | + | "match": "\\b(?:align|and|as|assert|break|case|catch|constant|continue|else|export|fn|for|if|in|instance|instantiate|let|log|loop|match|mod|mut|not|or|panic|record|return|set|static|super|throw|throws|trait|try|union|unsafe|use|while)\\b", |
|
| 88 | 88 | "name": "keyword.control.radiance" |
|
| 89 | 89 | }, |
|
| 90 | 90 | { |
|
| 91 | 91 | "match": "\\b_\\b", |
|
| 92 | 92 | "name": "constant.language.placeholder.radiance" |