Add regex syntax highlighting for JS and TS (#7851)

<img width="544" alt="SCR-20240215-pvzy"
src="https://github.com/zed-industries/zed/assets/67913738/e4d463a6-1795-4728-ac24-6c8e03e7ea5b">

Release Notes:

- Added support for regex syntax highlighting in `JS` and `TS`.
This commit is contained in:
Robin Pfäffle 2024-03-18 16:49:01 +01:00 committed by GitHub
parent 9f96c43ff7
commit ad97c357a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 85 additions and 0 deletions

View file

@ -109,6 +109,7 @@ pub fn init(
("purescript", tree_sitter_purescript::language()),
("python", tree_sitter_python::language()),
("racket", tree_sitter_racket::language()),
("regex", tree_sitter_regex::language()),
("ruby", tree_sitter_ruby::language()),
("rust", tree_sitter_rust::language()),
("scheme", tree_sitter_scheme::language()),
@ -318,6 +319,7 @@ pub fn init(
);
language!("scheme");
language!("racket");
language!("regex");
language!("lua", vec![Arc::new(lua::LuaLspAdapter)]);
language!(
"yaml",