aboutsummaryrefslogtreecommitdiffstats
path: root/tree-sitter-yts/.editorconfig
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-26 17:58:28 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-26 17:58:28 +0200
commit6c354f9af1d6a79f80772ffec8c719469fd19d69 (patch)
tree81630fdd769f5c1ff0c6473e187d610f4cbcf761 /tree-sitter-yts/.editorconfig
parentchore(version): v1.9.0 (diff)
downloadyt-6c354f9af1d6a79f80772ffec8c719469fd19d69.zip
build(tree-sitter-yts): Reduce bindings and update to latest tree-sitter version
Diffstat (limited to 'tree-sitter-yts/.editorconfig')
-rw-r--r--tree-sitter-yts/.editorconfig64
1 files changed, 45 insertions, 19 deletions
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 <benedikt.peetz@b-peetz.de>
-# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>.
+root = true
-# 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
+[*]
+charset = utf-8
-[**.{js,json,cc,css}]
+[*.{json,toml,yml,gyp,xml}]
indent_style = space
indent_size = 2
-# tree-sitter generate emits json with no trailing newline
-[src/node-types.json]
-insert_final_newline = false
+[*.{js,ts}]
+indent_style = space
+indent_size = 2
+
+[*.scm]
+indent_style = space
+indent_size = 2
+
+[*.{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