Improved syntax for JavaScript regular expressions, with syntax highlighting.
This package implements two tree-sitter parsers:
- tree-sitter-regex-unicode-js for regular expressions that have the Unicode flag set
- tree-sitter-regex-js for the rest
Instead of installing it from within Atom, close Atom and try from the command line.
cd /d %USERPROFILE%\.atom\packages
rmdir /s /q javascript-regex
apm install javascript-regex
Whenever Atom is updated, this package needs to be rebuilt. Either click the red bug icon in the bottom-right corner of the window, or execute Incompatible Packages: View
via the command palette. Then, click "Rebuild Packages". You'll have to restart Atom.
If anyone has a better solution, please let me know.