tree-sitter-bash/corpus/programs.txt

62 lines
845 B
Plaintext

===============================
Comments
===============================
#!/bin/bash
# hi
---
(program
(comment)
(comment))
===============================
Escaped newlines
===============================
abc \
d \
e
f=g \
h=i \
j \
--k
---
(program
(command
(command_name (word))
(word)
(word))
(command
(variable_assignment
(variable_name)
(word))
(variable_assignment
(variable_name)
(word))
(command_name (word))
(word)))
=============================
Escaped whitespace
============================
echo 1 \ 2 \ 3
---
(program (command (command_name (word)) (word) (word) (word)))
====================================
Files without trailing terminators
====================================
echo hi
---
(program (command (command_name (word)) (word)))