feat: move tree-sitter configuration to dedicated file (#3700)

This commit is contained in:
Amaan Qureshi 2024-09-30 11:11:23 -04:00 committed by GitHub
parent 94a8262110
commit ea3846a2c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1828 additions and 536 deletions

View file

@ -3,7 +3,7 @@ libdir=@LIBDIR@
includedir=@INCLUDEDIR@
Name: tree-sitter-PARSER_NAME
Description: CAMEL_PARSER_NAME grammar for tree-sitter
Description: PARSER_DESCRIPTION
URL: @URL@
Version: @VERSION@
Requires: @REQUIRES@

View file

@ -1,4 +1,4 @@
"""CAMEL_PARSER_NAME grammar for tree-sitter"""
"""PARSER_DESCRIPTION"""
from importlib.resources import files as _files

View file

@ -1,12 +1,13 @@
[package]
name = "tree-sitter-PARSER_NAME"
description = "CAMEL_PARSER_NAME grammar for tree-sitter"
description = "PARSER_DESCRIPTION"
version = "0.0.1"
license = "MIT"
authors = ["PARSER_AUTHOR_NAME PARSER_AUTHOR_EMAIL"]
license = "PARSER_LICENSE"
readme = "README.md"
keywords = ["incremental", "parsing", "tree-sitter", "PARSER_NAME"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-PARSER_NAME"
repository = "PARSER_URL"
edition = "2021"
autoexamples = false

View file

@ -4,7 +4,7 @@ import (
"testing"
tree_sitter "github.com/tree-sitter/go-tree-sitter"
tree_sitter_LOWER_PARSER_NAME "github.com/tree-sitter/tree-sitter-PARSER_NAME/bindings/go"
tree_sitter_LOWER_PARSER_NAME "PARSER_URL_STRIPPED/bindings/go"
)
func TestCanLoadGrammar(t *testing.T) {

View file

@ -1,4 +1,4 @@
module github.com/tree-sitter/tree-sitter-LOWER_PARSER_NAME
module PARSER_URL_STRIPPED
go 1.23

View file

@ -1,3 +1,9 @@
/**
* @file PARSER_DESCRIPTION
* @author PARSER_AUTHOR_NAME PARSER_AUTHOR_EMAIL
* @license PARSER_LICENSE
*/
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check

View file

@ -1,9 +1,14 @@
{
"name": "tree-sitter-PARSER_NAME",
"version": "0.0.1",
"description": "CAMEL_PARSER_NAME grammar for tree-sitter",
"description": "PARSER_DESCRIPTION",
"repository": "github:tree-sitter/tree-sitter-PARSER_NAME",
"license": "MIT",
"license": "PARSER_LICENSE",
"author": {
"name": "PARSER_AUTHOR_NAME",
"email": "PARSER_AUTHOR_EMAIL",
"url": "PARSER_AUTHOR_URL"
},
"main": "bindings/node",
"types": "bindings/node",
"keywords": [

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "tree-sitter-PARSER_NAME"
description = "CAMEL_PARSER_NAME grammar for tree-sitter"
description = "PARSER_DESCRIPTION"
version = "0.0.1"
keywords = ["incremental", "parsing", "tree-sitter", "PARSER_NAME"]
classifiers = [
@ -12,14 +12,15 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Compilers",
"Topic :: Text Processing :: Linguistic",
"Typing :: Typed"
"Typing :: Typed",
]
authors = [{ name = "PARSER_AUTHOR_NAME", email = "PARSER_AUTHOR_EMAIL" }]
requires-python = ">=3.9"
license.text = "MIT"
license.text = "PARSER_LICENSE"
readme = "README.md"
[project.urls]
Homepage = "https://github.com/tree-sitter/tree-sitter-PARSER_NAME"
Homepage = "PARSER_URL"
[project.optional-dependencies]
core = ["tree-sitter~=0.22"]