Go to file
Jason Rudolph 4f3cbc36b9 Handle heredoc delimiters that include spaces (#47)
* Handle heredoc delimiters that include spaces

* Update test to use multi-line heredoc to demonstrate bug

This change demonstrates the bug described in 
https://github.com/tree-sitter/tree-sitter-bash/pull/47#discussion_r280183823.

* Handle multi-line heredocs with spaces in delimiter

Fixes the failing test introduced in 0d8adbc335.

/xref https://github.com/tree-sitter/tree-sitter-bash/pull/47#discussion_r280183823
2019-05-01 13:59:21 -07:00
corpus Handle heredoc delimiters that include spaces (#47) 2019-05-01 13:59:21 -07:00
examples Parse a bunch of files from bash-it on CI 2018-03-01 11:10:20 -08:00
script Handle lists of statements more consistently 2018-10-18 15:29:07 -07:00
src Handle heredoc delimiters that include spaces (#47) 2019-05-01 13:59:21 -07:00
.gitattributes Add examples directory w/ one real shell script 2017-07-14 17:41:51 -07:00
.gitignore Allow other redirects between a heredoc's delimiter and body 2018-03-29 09:54:08 -07:00
.gitmodules Parse a bunch of files from bash-it on CI 2018-03-01 11:10:20 -08:00
.npmignore Parse a bunch of files from bash-it on CI 2018-03-01 11:10:20 -08:00
.travis.yml Use the default compiler for linux builds on travis 2019-04-18 15:48:23 -07:00
LICENSE Add license and readme 2017-07-14 14:46:24 -07:00
README.md Development experience (#25) 2018-08-06 10:03:34 -07:00
appveyor.yml Development experience (#25) 2018-08-06 10:03:34 -07:00
binding.gyp Start work on heredocs 2017-07-14 13:54:05 -07:00
grammar.js Handle 2019-04-18 15:46:58 -07:00
index.js Initial commit 2017-07-14 12:28:54 -07:00
package.json ⬆️ tree-sitter-cli 2019-05-01 12:28:34 -07:00

README.md

tree-sitter-bash

Build Status Build status

Bash grammar for tree-sitter.

Development

Install the dependencies:

npm install

Build and run the tests:

npm run build
npm run test

Run the build and tests in watch mode:

npm run test:watch

References