Skip to content

Fix/improve init command #3960

Closed
Closed
@ObserverOfTime

Description

Problem

Issues that should be fixed and backported to 0.24:

  • The grammar name is in snake_case but some files expect kebab-case
    • Makefile
    • CMakeLists.txt
    • bindings/rust/build.rs
    • bindings/node/index.js
    • bindings/c/*.h (filename)
    • bindings/c/*.pc.in (contents+filename)
  • The scope should allow dashes ([\\w-])
  • The default file-types should not start with a dot
  • Comma-separated file-types do not get separated

Expected behavior

Enhancements that can be made for 0.25:

  • Add a verbose name for the description and error messages
  • Take file-types into account for injection-regex
  • Add a funding link for package.json & pyproject.toml
    • "funding": "{}",
    • "Funding" = "{}"
  • Don't write the default bindings object
  • Allow specifying a custom class-name
"class-name": {
  "type": "string",
  "pattern": "^TreeSitter\\w+$",
  "description": "The class name for the Swift, Java & Kotlin bindings"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions