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
2
crates/languages/src/jsdoc/brackets.scm
Normal file
2
crates/languages/src/jsdoc/brackets.scm
Normal file
|
@ -0,0 +1,2 @@
|
|||
("[" @open "]" @close)
|
||||
("{" @open "}" @close)
|
7
crates/languages/src/jsdoc/config.toml
Normal file
7
crates/languages/src/jsdoc/config.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
name = "JSDoc"
|
||||
grammar = "jsdoc"
|
||||
autoclose_before = "]}"
|
||||
brackets = [
|
||||
{ start = "{", end = "}", close = true, newline = false },
|
||||
{ start = "[", end = "]", close = true, newline = false },
|
||||
]
|
2
crates/languages/src/jsdoc/highlights.scm
Normal file
2
crates/languages/src/jsdoc/highlights.scm
Normal file
|
@ -0,0 +1,2 @@
|
|||
(tag_name) @keyword
|
||||
(type) @type
|
Loading…
Add table
Add a link
Reference in a new issue