.cargo/
crates/
brain/
diff/
files/
highlight/
benches/
src/
syntaxes/
LICENSE
1.3 KiB
c.json
117.2 KiB
css.json
55.8 KiB
erb.json
3.6 KiB
fish.json
18.4 KiB
go.json
87.5 KiB
html.json
97.8 KiB
javascript.json
222.6 KiB
lua.json
21.7 KiB
make.json
15.5 KiB
markdown.json
87.9 KiB
python.json
105.6 KiB
radiance.json
5.6 KiB
ril.json
4.3 KiB
ruby.json
72.3 KiB
rust.json
26.4 KiB
shellscript.json
64.9 KiB
sql.json
4.9 KiB
toml.json
11.5 KiB
tsx.json
223.3 KiB
typescript.json
224.8 KiB
xml.json
7.5 KiB
yaml.json
16.1 KiB
tests/
Cargo.toml
492 B
repo/
signals/
tui/
tui-core/
tui-termion/
tui-widgets/
scripts/
src/
.gitignore
30 B
.gitsigners
198 B
AGENTS.md
1.9 KiB
CONTRIBUTING
1.7 KiB
Cargo.lock
5.4 KiB
Cargo.toml
1.9 KiB
LICENSE
1.1 KiB
README.md
245 B
STYLE
3.7 KiB
clippy.toml
213 B
crates/highlight/syntaxes/radiance.json
raw
| 1 | { |
| 2 | "displayName": "Radiance", |
| 3 | "fileTypes": [ |
| 4 | "rad" |
| 5 | ], |
| 6 | "name": "radiance", |
| 7 | "patterns": [ |
| 8 | { |
| 9 | "include": "#comments" |
| 10 | }, |
| 11 | { |
| 12 | "include": "#strings" |
| 13 | }, |
| 14 | { |
| 15 | "include": "#builtins" |
| 16 | }, |
| 17 | { |
| 18 | "include": "#modules" |
| 19 | }, |
| 20 | { |
| 21 | "include": "#namespaces" |
| 22 | }, |
| 23 | { |
| 24 | "include": "#functions" |
| 25 | }, |
| 26 | { |
| 27 | "include": "#keywords" |
| 28 | }, |
| 29 | { |
| 30 | "include": "#numbers" |
| 31 | }, |
| 32 | { |
| 33 | "include": "#operators" |
| 34 | }, |
| 35 | { |
| 36 | "include": "#punctuation" |
| 37 | } |
| 38 | ], |
| 39 | "repository": { |
| 40 | "builtins": { |
| 41 | "patterns": [ |
| 42 | { |
| 43 | "match": "@[A-Za-z_][A-Za-z0-9_]*", |
| 44 | "name": "support.function.builtin.radiance" |
| 45 | } |
| 46 | ] |
| 47 | }, |
| 48 | "comments": { |
| 49 | "patterns": [ |
| 50 | { |
| 51 | "begin": "//|--", |
| 52 | "beginCaptures": { |
| 53 | "0": { |
| 54 | "name": "punctuation.definition.comment.radiance" |
| 55 | } |
| 56 | }, |
| 57 | "end": "$", |
| 58 | "name": "comment.line.radiance", |
| 59 | "patterns": [ |
| 60 | { |
| 61 | "match": "\\b(?:TODO|FIXME)\\b", |
| 62 | "name": "keyword.other.todo.radiance" |
| 63 | } |
| 64 | ] |
| 65 | } |
| 66 | ] |
| 67 | }, |
| 68 | "functions": { |
| 69 | "patterns": [ |
| 70 | { |
| 71 | "match": "\\b[A-Za-z_][A-Za-z0-9_]*\\b(?=\\s*\\??\\()", |
| 72 | "name": "entity.name.function.radiance" |
| 73 | } |
| 74 | ] |
| 75 | }, |
| 76 | "keywords": { |
| 77 | "patterns": [ |
| 78 | { |
| 79 | "match": "\\b(?:bit|bool|f32|i8|i16|i32|i64|opaque|u8|u16|u32|u64|void)\\b", |
| 80 | "name": "storage.type.radiance" |
| 81 | }, |
| 82 | { |
| 83 | "match": "\\b(?:false|nil|true|undefined)\\b", |
| 84 | "name": "constant.language.radiance" |
| 85 | }, |
| 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", |
| 88 | "name": "keyword.control.radiance" |
| 89 | }, |
| 90 | { |
| 91 | "match": "\\b_\\b", |
| 92 | "name": "constant.language.placeholder.radiance" |
| 93 | } |
| 94 | ] |
| 95 | }, |
| 96 | "modules": { |
| 97 | "patterns": [ |
| 98 | { |
| 99 | "captures": { |
| 100 | "1": { |
| 101 | "name": "keyword.control.radiance" |
| 102 | }, |
| 103 | "2": { |
| 104 | "name": "entity.name.namespace.radiance" |
| 105 | } |
| 106 | }, |
| 107 | "match": "\\b(mod)\\s+([A-Za-z_][A-Za-z0-9_]*)\\b" |
| 108 | }, |
| 109 | { |
| 110 | "captures": { |
| 111 | "1": { |
| 112 | "name": "keyword.control.radiance" |
| 113 | }, |
| 114 | "2": { |
| 115 | "name": "entity.name.namespace.radiance" |
| 116 | } |
| 117 | }, |
| 118 | "match": "\\b(use)\\s+([A-Za-z_][A-Za-z0-9_]*)\\b" |
| 119 | } |
| 120 | ] |
| 121 | }, |
| 122 | "namespaces": { |
| 123 | "patterns": [ |
| 124 | { |
| 125 | "match": "\\b[A-Za-z_][A-Za-z0-9_]*\\b(?=\\s*::)", |
| 126 | "name": "entity.name.namespace.radiance" |
| 127 | }, |
| 128 | { |
| 129 | "match": "::", |
| 130 | "name": "punctuation.accessor.double-colon.radiance" |
| 131 | } |
| 132 | ] |
| 133 | }, |
| 134 | "numbers": { |
| 135 | "patterns": [ |
| 136 | { |
| 137 | "match": "(?<![A-Za-z0-9_])[+-]?0[xX][0-9A-Fa-f]+", |
| 138 | "name": "constant.numeric.integer.hexadecimal.radiance" |
| 139 | }, |
| 140 | { |
| 141 | "match": "(?<![A-Za-z0-9_])[+-]?0[bB][01]+", |
| 142 | "name": "constant.numeric.integer.binary.radiance" |
| 143 | }, |
| 144 | { |
| 145 | "match": "(?<![A-Za-z0-9_])[+-]?(?:[0-9]+\\.[0-9]+|[0-9]+)", |
| 146 | "name": "constant.numeric.radiance" |
| 147 | } |
| 148 | ] |
| 149 | }, |
| 150 | "operators": { |
| 151 | "patterns": [ |
| 152 | { |
| 153 | "match": "=>|->|\\.\\.|<<=|>>=|==|<>|<=|>=|\\+=|-=|\\*=|/=|%=|&=|\\|=|\\^=|<<|>>|[.!?~&|^%+\\-*/=<>:]", |
| 154 | "name": "keyword.operator.radiance" |
| 155 | } |
| 156 | ] |
| 157 | }, |
| 158 | "punctuation": { |
| 159 | "patterns": [ |
| 160 | { |
| 161 | "match": "[{}]", |
| 162 | "name": "punctuation.section.block.radiance" |
| 163 | }, |
| 164 | { |
| 165 | "match": "[()]", |
| 166 | "name": "punctuation.section.group.radiance" |
| 167 | }, |
| 168 | { |
| 169 | "match": "[\\[\\]]", |
| 170 | "name": "punctuation.section.brackets.radiance" |
| 171 | }, |
| 172 | { |
| 173 | "match": "[,;]", |
| 174 | "name": "punctuation.separator.radiance" |
| 175 | } |
| 176 | ] |
| 177 | }, |
| 178 | "strings": { |
| 179 | "patterns": [ |
| 180 | { |
| 181 | "begin": "\"", |
| 182 | "beginCaptures": { |
| 183 | "0": { |
| 184 | "name": "punctuation.definition.string.begin.radiance" |
| 185 | } |
| 186 | }, |
| 187 | "end": "\"", |
| 188 | "endCaptures": { |
| 189 | "0": { |
| 190 | "name": "punctuation.definition.string.end.radiance" |
| 191 | } |
| 192 | }, |
| 193 | "name": "string.quoted.double.radiance", |
| 194 | "patterns": [ |
| 195 | { |
| 196 | "match": "\\\\[\\\"'nrtvfab\\\\]", |
| 197 | "name": "constant.character.escape.radiance" |
| 198 | }, |
| 199 | { |
| 200 | "match": "\\\\.", |
| 201 | "name": "invalid.illegal.escape.radiance" |
| 202 | } |
| 203 | ] |
| 204 | }, |
| 205 | { |
| 206 | "begin": "'", |
| 207 | "beginCaptures": { |
| 208 | "0": { |
| 209 | "name": "punctuation.definition.string.begin.radiance" |
| 210 | } |
| 211 | }, |
| 212 | "end": "'", |
| 213 | "endCaptures": { |
| 214 | "0": { |
| 215 | "name": "punctuation.definition.string.end.radiance" |
| 216 | } |
| 217 | }, |
| 218 | "name": "string.quoted.single.radiance", |
| 219 | "patterns": [ |
| 220 | { |
| 221 | "match": "\\\\[\\\"'nrtvfab\\\\]", |
| 222 | "name": "constant.character.escape.radiance" |
| 223 | }, |
| 224 | { |
| 225 | "match": "\\\\.", |
| 226 | "name": "invalid.illegal.escape.radiance" |
| 227 | } |
| 228 | ] |
| 229 | } |
| 230 | ] |
| 231 | } |
| 232 | }, |
| 233 | "scopeName": "source.radiance" |
| 234 | } |