tree-sitter / tree-sitter-verilog

SystemVerilog grammar for tree-sitter
MIT License
93 stars 36 forks source link

package.json lack field tree-sitter #72

Closed zoomer-k closed 6 months ago

zoomer-k commented 7 months ago

following this guide https://dcreager.net/2021/06/getting-started-with-tree-sitter/

I add this repository to src folder , but tree-sitter cant detect tree-sitter-verilog

tree-sitter-python has "tree-sitter" field in package.json .

  "tree-sitter": [
    {
      "scope": "source.python",
      "file-types": [
        "py"
      ],
      "injection-regex": "py",
      "highlights": "queries/highlights.scm",
      "tags": "queries/tags.scm"
    }
  ]

when add this field , tree-sitter cli can parse

clason commented 6 months ago

Fixed in the last commit @amaanq

zoomer-k commented 6 months ago

thanks

zoomer-k commented 2 days ago

@clason @amaanq dose someone check this merge ?

filetypes field is lack injection-regex is not collect

 "tree-sitter": [
    {
      "scope": "source.verilog",
      "file-types":[
        "sv"
      ],
      "injection-regex": "sv"
    }

↑ maybe collect