feat: move tree-sitter configuration to dedicated file (#3700)
This commit is contained in:
parent
94a8262110
commit
ea3846a2c5
20 changed files with 1828 additions and 536 deletions
|
|
@ -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@
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
"""CAMEL_PARSER_NAME grammar for tree-sitter"""
|
||||
"""PARSER_DESCRIPTION"""
|
||||
|
||||
from importlib.resources import files as _files
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/tree-sitter/tree-sitter-LOWER_PARSER_NAME
|
||||
module PARSER_URL_STRIPPED
|
||||
|
||||
go 1.23
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue