Commit Graph

163 Commits

Author SHA1 Message Date
oxalica 4094e3a040
Handle words containing bare '#' (#109)
* Handle words containing bare '#'

Only a word beginning with a '#' starts a comment. A word can contain
'#' character without escaping as long as it is not the first character.

See: Bash Reference Manual section '3.1.3 Comments'
https://www.gnu.org/software/bash/manual/bash.html#Comments

* Regenerate
2021-11-01 09:59:27 -07:00
Martin Jambon 7fb8506cbe
Merge pull request #112 from tree-sitter/mj-until
Add support for 'until' loops
2021-10-16 14:38:43 -07:00
Martin Jambon c93070d720 Regenerate files 2021-10-16 01:46:22 -07:00
Martin Jambon 9d9325f8f9 Add support for 'until' loops 2021-10-16 01:44:38 -07:00
Martin Jambon 30d369ba45
Merge pull request #111 from tree-sitter/mj-select
Support for 'select' loops
2021-10-10 01:14:12 -07:00
Martin Jambon bb8bb8ad58 Regenerate files 2021-10-09 02:45:27 -07:00
Martin Jambon c79d2377d4 Add support for 'select' loops. 2021-10-09 02:44:05 -07:00
Andrew Helwer af9646bad9
Fixed CRLF behavior for tests, run tests on all platforms in GitHub CI (#106)
* Fixed CRLF issues in tests

* Added GH CI to ensure tests pass on all platforms
2021-09-25 13:59:45 -07:00
Andrew Hlynskyi 3243c9ab73
fix: escaped newline immediately after a char, resolves #100 (#102) 2021-09-21 21:30:05 -07:00
Sighery 7776f24dfa
Fix Cargo repository URL (#97) 2021-05-08 09:29:13 -07:00
Max Brunsfeld a8eb5cb57c Add simple highlight query 2021-03-04 15:46:26 -08:00
Max Brunsfeld 1de159fdd1 Add missing fields to Cargo.toml 2021-03-04 14:20:27 -08:00
Max Brunsfeld b6667bed36 0.19.0 2021-03-04 14:15:26 -08:00
Max Brunsfeld e10b52081d Bump tree-sitter-cli to 0.19 2021-03-04 14:15:19 -08:00
Kenneth Skovhus 8ece09ca4c
Add support for case fallthrough (#85)
Fixes https://github.com/tree-sitter/tree-sitter-bash/issues/40
2020-05-29 13:09:38 -07:00
Kenneth Skovhus f226a4b55a
Add support for empty expansions (#82)
Fixes https://github.com/tree-sitter/tree-sitter-bash/issues/57
2020-05-15 12:32:47 -07:00
Kenneth Skovhus 38e8ba4a3d
Expand function definition to support subshell and tests (#83)
Fixes https://github.com/tree-sitter/tree-sitter-bash/issues/60
2020-05-15 11:25:46 -07:00
Kenneth Skovhus 0477cc4460
Add support for ternary expression (#81)
Fixes https://github.com/tree-sitter/tree-sitter-bash/issues/64
2020-05-15 10:50:29 -07:00
Šimon Let 28e76c616d
WIP: Add '>|' redirection to grammar (#75)
* Add '>|' redirection to grammar

* add tests for >|

* generate grammar
2020-05-14 15:48:18 -07:00
Max Brunsfeld 7478c62b24 Add supertypes 2020-05-14 15:28:42 -07:00
Max Brunsfeld 60f2783804 ⬆️ tree-sitter-cli 2020-05-14 15:24:16 -07:00
Darangi e213464b50 0.16.1 2020-03-02 14:55:46 +01:00
Darangi 2e543ba513 ⬆️ prebuild@10.0.0 and prebuild-install@5.3.3 2020-03-02 14:55:26 +01:00
Max Brunsfeld de690d849a Start adding fields 2019-12-10 13:18:29 -08:00
Max Brunsfeld 2a3aec5635 ⬆️ tree-sitter-cli to 0.16 2019-12-10 12:39:14 -08:00
Nathan Sobo 7b8adcf484 0.16.0 2019-07-26 14:05:41 -06:00
Nathan Sobo c710c0d75b
Merge pull request #54 from tree-sitter/ns/ansii-c-quoting
Support ANSII-C quoting in strings prefixed with $
2019-07-26 14:05:17 -06:00
Nathan Sobo 1c48cd1676 Support ANSII-C quoting in strings prefixed with $
See 
https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html 
for details
2019-07-26 11:29:35 -06:00
Max Brunsfeld 3b15f16973 Fix CRLF handling in external scanner 2019-07-03 12:01:02 -07:00
Max Brunsfeld 7b6777bc56 0.15.0 2019-06-18 17:00:56 -07:00
Max Brunsfeld 2d081f4bb2 ⬆️ tree-sitter-cli 2019-06-18 17:00:42 -07:00
Max Brunsfeld fd6567ba3a Remove another known failure from the list 2019-05-01 14:03:06 -07:00
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
Max Brunsfeld 97e13b8145 ⬆️ tree-sitter-cli
Fixes #46
2019-05-01 12:28:34 -07:00
Max Brunsfeld 58a475fcdf 0.13.8 2019-04-18 16:03:23 -07:00
Max Brunsfeld cadb1d5800 Use the default compiler for linux builds on travis 2019-04-18 15:48:23 -07:00
Max Brunsfeld 15a3a168f0 Handle
Fixes #39
2019-04-18 15:46:58 -07:00
Max Brunsfeld e9748c132b Require a terminator at the ends of some compound statements
Fixes #44
2019-04-18 15:38:39 -07:00
Max Brunsfeld 53446e0e81 Handle heredocs followed by pipes or redirects
Fixes atom/language-shellscript#134
2019-04-18 15:25:40 -07:00
Max Brunsfeld da10d84aec 0.13.7 2018-11-05 17:13:24 -08:00
Max Brunsfeld 25f56dd856 Allow $ at the end of a bare word
Fixes #38
2018-11-04 15:34:33 -08:00
Max Brunsfeld 47f3e5208b Fix brace-nesting logic in regex scanning
Refs #38
2018-11-04 15:34:15 -08:00
Max Brunsfeld 8426c3fefd Fix handling of delimiter characters as part of bare words
Fixes atom/atom#18387
2018-11-04 13:14:13 -08:00
Max Brunsfeld 064119630b 0.13.6 2018-10-19 13:12:56 -07:00
Max Brunsfeld da116a1941 Handle heredocs w/ indented close delimiters
Fixes atom/language-shellscript#127
2018-10-19 13:06:56 -07:00
Max Brunsfeld 7f3c547119 0.13.5 2018-10-18 15:31:50 -07:00
Max Brunsfeld a4fb636b2d Handle shorthand file redirect command substitutions
Fixes #34
2018-10-18 15:31:24 -07:00
Max Brunsfeld 48f7e22475 Handle lists of statements more consistently 2018-10-18 15:29:07 -07:00
Max Brunsfeld 4fb4e2960d Fix handling of escaped chars in strings 2018-10-18 15:28:46 -07:00
Max Brunsfeld ac53999dee 0.13.4 2018-10-18 13:00:09 -07:00