Skip to content

Commit 828081e

Browse files
committed
chore: update gammars
1 parent e3bee32 commit 828081e

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

docs/references/engine-js-compat.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
| | Count |
1212
| :-------------- | --------------------------------: |
1313
| Total Languages | 213 |
14-
| Fully Supported | [177](#fully-supported-languages) |
15-
| Mismatched | [31](#mismatched-languages) |
14+
| Fully Supported | [178](#fully-supported-languages) |
15+
| Mismatched | [30](#mismatched-languages) |
1616
| Unsupported | [5](#unsupported-languages) |
1717

1818
## Fully Supported Languages
@@ -23,6 +23,7 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
2323
| ------------------ | :-------------- | ----------------: | --------------: |
2424
| abap | ✅ OK | 49 | - |
2525
| actionscript-3 | ✅ OK | 57 | - |
26+
| angular-ts | ✅ OK | 366 | - |
2627
| apache | ✅ OK | 60 | - |
2728
| apl | ✅ OK | 179 | - |
2829
| applescript | ✅ OK | 151 | - |
@@ -31,7 +32,7 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
3132
| astro | ✅ OK | 59 | - |
3233
| awk | ✅ OK | 36 | - |
3334
| ballerina | ✅ OK | 231 | - |
34-
| bash | ✅ OK | 147 | - |
35+
| bash | ✅ OK | 146 | - |
3536
| bat | ✅ OK | 58 | - |
3637
| berry | ✅ OK | 18 | - |
3738
| bibtex | ✅ OK | 19 | - |
@@ -43,16 +44,16 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
4344
| cmake | ✅ OK | 23 | - |
4445
| cobol | ✅ OK | 138 | - |
4546
| codeowners | ✅ OK | 4 | - |
46-
| codeql | ✅ OK | 151 | - |
47+
| codeql | ✅ OK | 150 | - |
4748
| coffee | ✅ OK | 120 | - |
4849
| common-lisp | ✅ OK | 57 | - |
4950
| cpp | ✅ OK | 220 | - |
5051
| crystal | ✅ OK | 140 | - |
51-
| css | ✅ OK | 142 | - |
52+
| css | ✅ OK | 141 | - |
5253
| csv | ✅ OK | 1 | - |
5354
| d | ✅ OK | 270 | - |
5455
| dart | ✅ OK | 71 | - |
55-
| dax | ✅ OK | 24 | - |
56+
| dax | ✅ OK | 23 | - |
5657
| desktop | ✅ OK | 16 | - |
5758
| diff | ✅ OK | 16 | - |
5859
| docker | ✅ OK | 7 | - |
@@ -118,15 +119,15 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
118119
| make | ✅ OK | 48 | - |
119120
| marko | ✅ OK | 81 | - |
120121
| matlab | ✅ OK | 77 | - |
121-
| mojo | ✅ OK | 216 | - |
122+
| mojo | ✅ OK | 213 | - |
122123
| move | ✅ OK | 117 | - |
123124
| narrat | ✅ OK | 34 | - |
124125
| nextflow | ✅ OK | 17 | - |
125126
| nim | ✅ OK | 114 | - |
126127
| nix | ✅ OK | 80 | - |
127128
| nushell | ✅ OK | 75 | - |
128129
| objective-c | ✅ OK | 217 | - |
129-
| objective-cpp | ✅ OK | 298 | - |
130+
| objective-cpp | ✅ OK | 297 | - |
130131
| ocaml | ✅ OK | 178 | - |
131132
| pascal | ✅ OK | 23 | - |
132133
| perl | ✅ OK | 156 | - |
@@ -136,7 +137,7 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
136137
| prolog | ✅ OK | 26 | - |
137138
| proto | ✅ OK | 33 | - |
138139
| puppet | ✅ OK | 59 | - |
139-
| python | ✅ OK | 221 | - |
140+
| python | ✅ OK | 218 | - |
140141
| qml | ✅ OK | 38 | - |
141142
| qmldir | ✅ OK | 7 | - |
142143
| qss | ✅ OK | 31 | - |
@@ -155,7 +156,7 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
155156
| scheme | ✅ OK | 34 | - |
156157
| scss | ✅ OK | 104 | - |
157158
| shaderlab | ✅ OK | 38 | - |
158-
| shellscript | ✅ OK | 147 | - |
159+
| shellscript | ✅ OK | 146 | - |
159160
| shellsession | ✅ OK | 2 | - |
160161
| smalltalk | ✅ OK | 31 | - |
161162
| solidity | ✅ OK | 102 | - |
@@ -183,11 +184,11 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
183184
| vala | ✅ OK | 20 | - |
184185
| vb | ✅ OK | 34 | - |
185186
| verilog | ✅ OK | 33 | - |
186-
| vhdl | ✅ OK | 83 | - |
187+
| vhdl | ✅ OK | 82 | - |
187188
| viml | ✅ OK | 72 | - |
188189
| vue | ✅ OK | 69 | - |
189190
| vue-html | ✅ OK | 36 | - |
190-
| vyper | ✅ OK | 241 | - |
191+
| vyper | ✅ OK | 238 | - |
191192
| wasm | ✅ OK | 78 | - |
192193
| wenyan | ✅ OK | 18 | - |
193194
| wgsl | ✅ OK | 44 | - |
@@ -197,7 +198,7 @@ Languages that works with the JavaScript RegExp engine, and will produce the sam
197198
| xsl | ✅ OK | 5 | - |
198199
| zenscript | ✅ OK | 21 | - |
199200
| zig | ✅ OK | 51 | - |
200-
| zsh | ✅ OK | 147 | - |
201+
| zsh | ✅ OK | 146 | - |
201202

202203
## Mismatched Languages
203204

@@ -206,7 +207,6 @@ Languages that does not throw with the JavaScript RegExp engine, but will produc
206207
| Language | Highlight Match | Patterns Parsable | Patterns Failed |
207208
| ------------ | :-------------- | ----------------: | --------------: |
208209
| angular-html | ⚠️ Mismatch | 2 | - |
209-
| angular-ts | ⚠️ Mismatch | 366 | - |
210210
| apex | ⚠️ Mismatch | 189 | - |
211211
| asciidoc | ⚠️ Mismatch | 262 | - |
212212
| beancount | ⚠️ Mismatch | 39 | - |
@@ -216,7 +216,7 @@ Languages that does not throw with the JavaScript RegExp engine, but will produc
216216
| cue | ⚠️ Mismatch | 85 | - |
217217
| cypher | ⚠️ Mismatch | 39 | - |
218218
| haml | ⚠️ Mismatch | 64 | - |
219-
| haskell | ⚠️ Mismatch | 164 | - |
219+
| haskell | ⚠️ Mismatch | 157 | - |
220220
| kusto | ⚠️ Mismatch | 60 | - |
221221
| latex | ⚠️ Mismatch | 183 | - |
222222
| markdown | ⚠️ Mismatch | 103 | - |
@@ -235,7 +235,7 @@ Languages that does not throw with the JavaScript RegExp engine, but will produc
235235
| stata | ⚠️ Mismatch | 189 | - |
236236
| systemd | ⚠️ Mismatch | 32 | - |
237237
| tex | ⚠️ Mismatch | 38 | - |
238-
| yaml | ⚠️ Mismatch | 50 | - |
238+
| yaml | ⚠️ Mismatch | 46 | - |
239239

240240
## Unsupported Languages
241241

@@ -246,5 +246,5 @@ Languages that throws with the JavaScript RegExp engine (contains syntaxes that
246246
| ada | ✅ OK | 199 | 1 |
247247
| csharp | ⚠️ Mismatch | 298 | 1 |
248248
| razor | ⚠️ Mismatch | 83 | 2 |
249-
| swift | ❌ Error | 305 | 4 |
249+
| swift | ❌ Error | 302 | 4 |
250250
| julia | ❌ Error | 77 | 18 |

packages/shiki/test/engine-js/__records__/toml.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"\\G\\d{4}-(0[1-9]|1[012])-(?!00|3[2-9])[0-3]\\d([Tt ](?!2[5-9])[0-2]\\d:[0-5]\\d:(?!6[1-9])[0-6]\\d(\\.\\d+)?(Z|[+-](?!2[5-9])[0-2]\\d:[0-5]\\d)?)?",
236236
"\\G(?!2[5-9])[0-2]\\d:[0-5]\\d:(?!6[1-9])[0-6]\\d(\\.\\d+)?",
237237
"\\G(true|false)",
238-
"\\G0x[ \\t]([ \\t]|_[ \\t])*",
238+
"\\G0x\\h(\\h|_\\h)*",
239239
"\\G0o[0-7]([0-7]|_[0-7])*",
240240
"\\G0b[01]([01]|_[01])*",
241241
"\\G[+-]?(inf|nan)",
@@ -334,7 +334,7 @@
334334
"\\￿\\d{4}-(0[1-9]|1[012])-(?!00|3[2-9])[0-3]\\d([Tt ](?!2[5-9])[0-2]\\d:[0-5]\\d:(?!6[1-9])[0-6]\\d(\\.\\d+)?(Z|[+-](?!2[5-9])[0-2]\\d:[0-5]\\d)?)?",
335335
"\\￿(?!2[5-9])[0-2]\\d:[0-5]\\d:(?!6[1-9])[0-6]\\d(\\.\\d+)?",
336336
"\\￿(true|false)",
337-
"\\0x[ \\t]([ \\t]|_[ \\t])*",
337+
"\\0x\\h(\\h|_\\h)*",
338338
"\\￿0o[0-7]([0-7]|_[0-7])*",
339339
"\\￿0b[01]([01]|_[01])*",
340340
"\\￿[+-]?(inf|nan)",

0 commit comments

Comments
 (0)