aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2022-06-03 04:56:47 +0000
committerGitHub2022-06-03 04:56:47 +0000
commitfd4858c03d5457872408bef3e58305c9233e78fc (patch)
tree8eb8f20d5b5eaa26c73df5d8a7cf9f56c8aa0275
parent42d780b1037f36bd37e2a8dc40b5e9bb95fb5be7 (diff)
add tree-sitter-jsdoc (#2650)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml12
-rw-r--r--runtime/queries/jsdoc/highlights.scm2
3 files changed, 15 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 3f8bc0a4..aa9fc141 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -41,6 +41,7 @@
| iex | ✓ | | | |
| java | ✓ | | | `jdtls` |
| javascript | ✓ | | ✓ | `typescript-language-server` |
+| jsdoc | ✓ | | | |
| json | ✓ | | ✓ | `vscode-json-language-server` |
| jsx | ✓ | | ✓ | `typescript-language-server` |
| julia | ✓ | | | `julia` |
diff --git a/languages.toml b/languages.toml
index b29efc19..1f42ddcc 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1421,3 +1421,15 @@ indent = { tab-width = 4, unit = " " }
[[grammar]]
name = "edoc"
source = { git = "https://github.com/the-mikedavis/tree-sitter-edoc", rev = "1691ec0aa7ad1ed9fa295590545f27e570d12d60" }
+
+[[language]]
+name = "jsdoc"
+scope = "source.jsdoc"
+injection-regex = "jsdoc"
+file-types = ["jsdoc"]
+roots = []
+indent = { tab-width = 2, unit = " " }
+
+[[grammar]]
+name = "jsdoc"
+source = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "189a6a4829beb9cdbe837260653b4a3dfb0cc3db" }
diff --git a/runtime/queries/jsdoc/highlights.scm b/runtime/queries/jsdoc/highlights.scm
new file mode 100644
index 00000000..4b4266c9
--- /dev/null
+++ b/runtime/queries/jsdoc/highlights.scm
@@ -0,0 +1,2 @@
+(tag_name) @keyword
+(type) @type