Skip to content

JavaScript RegExp Engine Compatibility References

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

Generated on Monday, January 20, 2025

Version 1.27.2

Runtime: Node.js v22.11.0

Report Summary

Count
Total Languages219
Supported213
Mismatched0
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✅ OK52-
actionscript-3✅ OK57-
ada✅ OK201-
angular-html✅ OK673-
angular-ts✅ OK783-
apache✅ OK60-
apex✅ OK189-
apl✅ OK922-
applescript✅ OK152-
ara✅ OK54-
asciidoc✅ OK262-
asm✅ OK297-
astro✅ OK616-
awk✅ OK36-
ballerina✅ OK231-
bash✅ OK149-
bat✅ OK58-
beancount✅ OK39-
berry✅ OK18-
bibtex✅ OK19-
bicep✅ OK27-
blade✅ OK1130-
bsl✅ OK96-
c✅ OK177-
cadence✅ OK71-
cairo✅ OK236-
clarity✅ OK43-
clj✅ OK38-
clojure✅ OK38-
cmake✅ OK23-
cobol✅ OK867-
codeowners✅ OK4-
coffee✅ OK471-
common-lisp✅ OK60-
coq✅ OK26-
cpp✅ OK513-
crystal✅ OK1072-
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✅ OK636-
elixir✅ OK711-
elm✅ OK246-
emacs-lisp✅ OK153-22
erb✅ OK1792-
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✅ OK680-
glimmer-ts✅ OK680-
glsl✅ OK186-
gnuplot✅ OK82-
go✅ OK125-
graphql✅ OK451-
groovy✅ OK134-
hack✅ OK951-
haml✅ OK564-
handlebars✅ OK703-
haskell✅ OK157-
haxe✅ OK174-
hcl✅ OK67-
hjson✅ OK57-
hlsl✅ OK52-
html✅ OK614-
http✅ OK759-
hxml✅ OK182-
hy✅ OK12-
imba✅ OK519-
ini✅ OK11-
java✅ OK142-
javascript✅ OK378-
jinja✅ OK645-
jison✅ OK423-
json✅ OK19-
json5✅ OK23-
jsonc✅ OK19-
jsonl✅ OK19-
jsonnet✅ OK33-
jssm✅ OK30-
jsx✅ OK378-
julia✅ OK1172-
kotlin✅ OK58-
kusto✅ OK60-
latex✅ OK283-
lean✅ OK32-
less✅ OK280-
liquid✅ OK692-
log✅ OK31-
logo✅ OK9-
lua✅ OK278-
luau✅ OK88-
make✅ OK51-
markdown✅ OK118-
marko✅ OK929-
matlab✅ OK88-
mdc✅ OK786-
mdx✅ OK197-
mermaid✅ OK134-
mipsasm✅ OK17-
mojo✅ OK213-
move✅ OK120-
narrat✅ OK34-
nextflow✅ OK32-
nginx✅ OK378-
nim✅ OK1130-
nix✅ OK80-
nushell✅ OK81-
objective-c✅ OK223-
objective-cpp✅ OK309-
ocaml✅ OK178-
pascal✅ OK23-
perl✅ OK945-
php✅ OK1135-
plsql✅ OK45-
po✅ OK23-
polar✅ OK30-
postcss✅ OK49-
powerquery✅ OK30-
powershell✅ OK88-
prisma✅ OK28-
prolog✅ OK26-
proto✅ OK33-
pug✅ OK689-
puppet✅ OK61-
python✅ OK218-
qml✅ OK410-
qmldir✅ OK7-
qss✅ OK31-
r✅ OK71-
racket✅ OK69-
raku✅ OK52-
reg✅ OK9-
regexp✅ OK34-
rel✅ OK17-
riscv✅ OK36-
rst✅ OK2037-
ruby✅ OK1787-
rust✅ OK89-
sas✅ OK101-
scala✅ OK117-
scheme✅ OK34-
scss✅ OK234-
sdbl✅ OK23-
shaderlab✅ OK87-
shellscript✅ OK149-
shellsession✅ OK151-
smalltalk✅ OK35-
solidity✅ OK102-
soy✅ OK652-
sparql✅ OK19-
splunk✅ OK17-
sql✅ OK67-
ssh-config✅ OK12-
stata✅ OK253-
stylus✅ OK107-
svelte✅ OK640-
system-verilog✅ OK102-
systemd✅ OK32-
talonscript✅ OK44-
tasl✅ OK23-
tcl✅ OK34-
templ✅ OK682-
terraform✅ OK68-
tex✅ OK106-
toml✅ OK44-
ts-tags✅ OK1002-
tsv✅ OK1-
tsx✅ OK378-
turtle✅ OK15-
twig✅ OK2432-
typescript✅ OK366-
typespec✅ OK80-
typst✅ OK78-
v✅ OK80-
vala✅ OK20-
vb✅ OK34-
verilog✅ OK33-
vhdl✅ OK82-
viml✅ OK72-
vue✅ OK698-
vue-html✅ OK723-
vyper✅ OK238-
wasm✅ OK78-
wenyan✅ OK18-
wgsl✅ OK44-
wikitext✅ OK104-
wolfram✅ OK501-
xml✅ OK169-
xsl✅ OK171-
yaml✅ OK48-
zenscript✅ OK21-
zig✅ OK51-
zsh✅ OK149-
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.

LanguageHighlight MatchPatterns ParsablePatterns FailedDiff

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
codeql✅ OK1501
sass✅ OK672
purescript❌ Error721
csharp❌ Error3103137
razor❌ Error9593
swift❌ Error3263

Released under the MIT License.