draft of migration to tree-sitter

This commit is contained in:
arcanis committed 2026-10-19 22:24:09 +03:00
1 parent 9b65e01d2f
commit e745d38988
10 files changed
+337 -539

No files matched your search

@@ -138,7 +138,7 @@ prepare() {
# apply patch level commits on top of annotated tag for pacman
if [[ -n ${_git_patch_level_commit} ]]; then
if [[ v${_git_tag} != $(git describe --tags --abbrev=0 "${_git_patch_level_commit}") ]] then
if [[ v${_git_tag} != $(git describe --tags --abbrev=0 "${_git_patch_level_commit}") ]]; then
error "patch level commit ${_git_patch_level_commit} is not a descendant of v${_git_tag}"
exit 1
fi
+15 -15
View File
@@ -41,55 +41,55 @@ array=(first '(' second)
array=(first ')' second)
# functions
function() { single line }
function() {
func() { single line; }
func() {
multi
line
}
function()
func()
{
c
multi
line
}
function() {
func() {
# comment
multi
line
}
function () {
func() {
body
}
function ( ){
func() {
body
}
function_with-package-name() { body }
function() {
function_with-package-name() { body; }
func() {
first
{ inner shell }
{ inner shell; }
last
}
function() {
func() {
body "{" argument
}
function() {
func() {
body "}" argument
}
function() {
func() {
body '{' argument
}
function() {
func() {
body '}' argument
}
# special case with quotes in comments
function() {
func() {
# we don't care about unclosed quotation in comments
body # no, I said we really don't care
}
# some random unicode symbols
function() {
func() {
mv "$pkgdir"/usr/share/fonts/站酷小薇体 "$pkgdir"/usr/share/fonts/zcool-xiaowei-regular
mv "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE.站酷小薇体 "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE.zcool-xiaowei-regular
}