From 6c354f9af1d6a79f80772ffec8c719469fd19d69 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 26 May 2026 17:58:28 +0200 Subject: build(tree-sitter-yts): Reduce bindings and update to latest tree-sitter version --- tree-sitter-yts/.editorconfig | 68 ++++++++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 21 deletions(-) (limited to 'tree-sitter-yts/.editorconfig') diff --git a/tree-sitter-yts/.editorconfig b/tree-sitter-yts/.editorconfig index 9975ff2..ff17b12 100644 --- a/tree-sitter-yts/.editorconfig +++ b/tree-sitter-yts/.editorconfig @@ -1,24 +1,50 @@ -# yt - A fully featured command line YouTube client -# -# Copyright (C) 2024 Benedikt Peetz -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of Yt. -# -# You should have received a copy of the License along with this program. -# If not, see . - -# for testing purposes, the corpus may have trailing whitespace -# and may have mixed EOL. -# Still want a final newline though, as that makes no semantic difference. -[corpus/*] -trim_trailing_whitespace = false -end_of_line = unset - -[**.{js,json,cc,css}] +root = true + +[*] +charset = utf-8 + +[*.{json,toml,yml,gyp,xml}] +indent_style = space +indent_size = 2 + +[*.{js,ts}] +indent_style = space +indent_size = 2 + +[*.scm] indent_style = space indent_size = 2 -# tree-sitter generate emits json with no trailing newline -[src/node-types.json] -insert_final_newline = false +[*.{c,cc,h}] +indent_style = space +indent_size = 4 + +[*.rs] +indent_style = space +indent_size = 4 + +[*.{py,pyi}] +indent_style = space +indent_size = 4 + +[*.swift] +indent_style = space +indent_size = 4 + +[*.java] +indent_style = space +indent_size = 4 + +[*.go] +indent_style = tab +indent_size = 8 + +[Makefile] +indent_style = tab +indent_size = 8 + +[parser.c] +indent_size = 2 + +[{alloc,array,parser}.h] +indent_size = 2 -- cgit v1.3.1