From cf4b8f71e682385f2a4628d244cfdf851e32a874 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 2 Jun 2022 11:06:18 -0500 Subject: [PATCH] add tree-sitter-jsdoc --- languages.toml | 12 ++++++++++++ runtime/queries/jsdoc/highlights.scm | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 runtime/queries/jsdoc/highlights.scm diff --git a/languages.toml b/languages.toml index 3e6793656a742..3cedc996a66db 100644 --- a/languages.toml +++ b/languages.toml @@ -1409,3 +1409,15 @@ injection-regex = "verilog" [[grammar]] name = "verilog" source = { git = "https://github.com/andreytkachenko/tree-sitter-verilog", rev = "514d8d70593d29ef3ef667fa6b0e504ae7c977e3" } + +[[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 0000000000000..4b4266c9fd1c9 --- /dev/null +++ b/runtime/queries/jsdoc/highlights.scm @@ -0,0 +1,2 @@ +(tag_name) @keyword +(type) @type