Add tree-sitter injections support & cleanup

This commit is contained in:
2025-12-25 04:14:53 +00:00
parent a10dd92249
commit 659628835d
16 changed files with 302 additions and 323 deletions

View File

@@ -44,9 +44,19 @@ puts "Emoji count: #{emojis.length}"
# Multi-line string with unicode
multi = <<~EOF
Emojis inside heredoc: 🎉🔥💀🧡💛💚💙💜🖤🤍🤎
End of block.
# Function recursion demo
factorial() {
local n="$1"
if ((n <= 1)); then
echo 1
else
local prev
prev=$(factorial $((n - 1)))
echo $((n * prev))
fi
}
log INFO "factorial(5) = $(factorial 5)"
EOF
puts multi