Skip to content

JavaScript RegExp Engine Compatibility References

Compatibility reference of all built-in grammars with the JavaScript RegExp engine.

Generated on Thursday, December 19, 2024

Version 1.24.2

Runtime: Node.js v22.11.0

Report Summary

Count
Total Languages218
Supported206
Mismatched6
Unsupported6

Supported Languages

Languages that work with the JavaScript RegExp engine, and will produce the same result as the WASM engine (with the sample snippets in the registry). In some edge cases, it's not guaranteed that the highlighting will be 100% the same. If that happens, please create an issue with the sample snippet.

LanguageHighlight MatchPatterns ParsablePatterns FailedDiff
abap✅ OK51-
actionscript-3✅ OK57-
angular-html✅ OK670-
angular-ts✅ OK779-
apache✅ OK60-
apl✅ OK917-
applescript✅ OK152-
ara✅ OK54-
asciidoc✅ OK262-
asm✅ OK297-
astro✅ OK613-
awk✅ OK36-
ballerina✅ OK230-
bash✅ OK148-
bat✅ OK58-
beancount✅ OK39-
berry✅ OK18-
bibtex✅ OK19-
bicep✅ OK27-
blade✅ OK1126-
bsl✅ OK96-
c✅ OK177-
cadence✅ OK71-
cairo✅ OK236-
clarity✅ OK43-
clj✅ OK38-
clojure✅ OK38-
cmake✅ OK23-
cobol✅ OK863-
codeowners✅ OK4-
codeql✅ OK151-
coffee✅ OK469-
common-lisp✅ OK60-
coq✅ OK26-
crystal✅ OK1067-
css✅ OK141-
csv✅ OK1-
cue✅ OK85-
cypher✅ OK39-
d✅ OK270-
dart✅ OK76-
dax✅ OK23-
desktop✅ OK16-
diff✅ OK16-
docker✅ OK7-
dotenv✅ OK9-
dream-maker✅ OK56-
edge✅ OK632-
elixir✅ OK708-
elm✅ OK244-
emacs-lisp✅ OK153-22
erb✅ OK1786-
erlang✅ OK147-
fennel✅ OK31-
fish✅ OK25-
fluent✅ OK23-
fortran-fixed-form✅ OK332-
fortran-free-form✅ OK328-
fsharp✅ OK239-
fsl✅ OK30-
gdresource✅ OK158-
gdscript✅ OK94-
gdshader✅ OK39-
genie✅ OK20-
gherkin✅ OK19-
gleam✅ OK26-
glimmer-js✅ OK676-
glimmer-ts✅ OK676-
glsl✅ OK186-
gnuplot✅ OK82-
go✅ OK125-
graphql✅ OK448-
groovy✅ OK133-
haml✅ OK562-
handlebars✅ OK699-
haskell✅ OK157-
haxe✅ OK174-
hcl✅ OK67-
hjson✅ OK57-
hlsl✅ OK52-
html✅ OK611-
http✅ OK753-
hxml✅ OK182-
hy✅ OK12-
imba✅ OK516-
ini✅ OK11-
java✅ OK142-
javascript✅ OK376-
jinja✅ OK642-
jison✅ OK421-
json✅ OK19-
json5✅ OK23-
jsonc✅ OK19-
jsonl✅ OK19-
jsonnet✅ OK33-
jssm✅ OK30-
jsx✅ OK376-
julia✅ OK1168-
kotlin✅ OK58-
latex✅ OK283-
lean✅ OK32-
less✅ OK280-
liquid✅ OK689-
log✅ OK30-
logo✅ OK9-
lua✅ OK278-
luau✅ OK88-
make✅ OK51-
marko✅ OK926-
matlab✅ OK88-
mdc✅ OK783-
mdx✅ OK197-
mermaid✅ OK134-
mipsasm✅ OK17-
mojo✅ OK213-
move✅ OK120-
narrat✅ OK34-
nextflow✅ OK32-
nim✅ OK1126-
nix✅ OK80-
nushell✅ OK81-
objective-c✅ OK223-
objective-cpp✅ OK309-
ocaml✅ OK178-
pascal✅ OK23-
perl✅ OK941-
php✅ OK1131-
plsql✅ OK45-
postcss✅ OK49-
powerquery✅ OK30-
powershell✅ OK88-
prisma✅ OK28-
prolog✅ OK26-
proto✅ OK33-
pug✅ OK686-
puppet✅ OK61-
python✅ OK218-
qml✅ OK408-
qmldir✅ OK7-
qss✅ OK31-
r✅ OK71-
racket✅ OK69-
raku✅ OK52-
reg✅ OK9-
regexp✅ OK34-
rel✅ OK17-
riscv✅ OK36-
rst✅ OK2031-
ruby✅ OK1781-
rust✅ OK89-
sas✅ OK101-
sass✅ OK69-
scala✅ OK117-
scheme✅ OK34-
scss✅ OK234-
sdbl✅ OK23-
shaderlab✅ OK87-
shellscript✅ OK148-
shellsession✅ OK150-
smalltalk✅ OK35-
solidity✅ OK102-
soy✅ OK649-
sparql✅ OK19-
splunk✅ OK17-
sql✅ OK67-
ssh-config✅ OK12-
stata✅ OK253-
stylus✅ OK107-
svelte✅ OK637-
system-verilog✅ OK102-
systemd✅ OK32-
talonscript✅ OK44-
tasl✅ OK23-
tcl✅ OK34-
templ✅ OK675-
terraform✅ OK68-
tex✅ OK106-
toml✅ OK44-
ts-tags✅ OK997-
tsv✅ OK1-
tsx✅ OK376-
turtle✅ OK15-
twig✅ OK2426-
typescript✅ OK363-
typespec✅ OK80-
typst✅ OK78-
v✅ OK80-
vala✅ OK20-
vb✅ OK34-
verilog✅ OK33-
vhdl✅ OK82-
viml✅ OK72-
vue✅ OK692-
vue-html✅ OK716-
vyper✅ OK238-
wasm✅ OK78-
wenyan✅ OK18-
wgsl✅ OK44-
wikitext✅ OK104-
wolfram✅ OK501-
xml✅ OK169-
xsl✅ OK171-
yaml✅ OK48-
zenscript✅ OK21-
zig✅ OK51-
zsh✅ OK148-
Table Field Explanations
  • Highlight Match: Whether the highlighting results matched with the WASM engine for the sample snippet.
  • Patterns Parsable: Number of regex patterns that can be parsed by the JavaScript RegExp engine.
  • Patterns Failed: Number of regex patterns that can't be parsed by the JavaScript RegExp engine (throws error).
  • Diff: Length of characters that are different between the highlighting results of the two engines.

Mismatched Languages

Languages that do not throw with the JavaScript RegExp engine, but will produce different results than the WASM engine. Please use with caution.

LanguageHighlight MatchPatterns ParsablePatterns FailedDiff
apex🚧 Mismatch187-33
cpp🚧 Mismatch512-8
kusto🚧 Mismatch60-40
markdown🚧 Mismatch118-100
nginx🚧 Mismatch378-122
po🚧 Mismatch23-114

Unsupported Languages

Languages that throw with the JavaScript RegExp engine, either because they contain syntax we can't polyfill yet or because the grammar contains an invalid Oniguruma regex (that would also fail when using the WASM engine, but silently). You can try these languages with the forgiving option to skip errors.

LanguageHighlight MatchPatterns ParsablePatterns FailedDiff
ada✅ OK2011
hack❌ Error9471114
purescript❌ Error721
csharp❌ Error3063148
swift❌ Error32638
razor❌ Error952514

Released under the MIT License.