Add JSDoc syntax highlighting support (#7826)
 Closes #4926 Release Notes: - Added support for [JSDoc](https://jsdoc.app) syntax highlighting ([#7224](https://github.com/zed-industries/zed/issues/7224)).
This commit is contained in:
parent
24e7cfb0d5
commit
eecbafb94e
10 changed files with 37 additions and 0 deletions
|
@ -90,6 +90,7 @@ pub fn init(
|
|||
("hcl", tree_sitter_hcl::language()),
|
||||
("heex", tree_sitter_heex::language()),
|
||||
("html", tree_sitter_html::language()),
|
||||
("jsdoc", tree_sitter_jsdoc::language()),
|
||||
("json", tree_sitter_json::language()),
|
||||
("lua", tree_sitter_lua::language()),
|
||||
("markdown", tree_sitter_markdown::language()),
|
||||
|
@ -258,6 +259,7 @@ pub fn init(
|
|||
Arc::new(tailwind::TailwindLspAdapter::new(node_runtime.clone())),
|
||||
]
|
||||
);
|
||||
language!("jsdoc", vec![Arc::new(deno::DenoLspAdapter::new())]);
|
||||
}
|
||||
false => {
|
||||
language!(
|
||||
|
@ -283,6 +285,12 @@ pub fn init(
|
|||
Arc::new(tailwind::TailwindLspAdapter::new(node_runtime.clone())),
|
||||
]
|
||||
);
|
||||
language!(
|
||||
"jsdoc",
|
||||
vec![Arc::new(typescript::TypeScriptLspAdapter::new(
|
||||
node_runtime.clone(),
|
||||
))]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue