Commit Graph

13695 Commits (syntactic_context)
 

Author SHA1 Message Date
Wilfred Hughes 9f03834dd7 Merge commit '42ab5ca0e6bb7130c397c7ca10440fd5cfc2d564' 2023-08-23 20:57:50 +07:00
Wilfred Hughes fa20bd9d44 Add Linux with musl, Linux on aarch64, and macOS on aarch64 targets
Use cross to cross-compile from Ubuntu to these platforms.

This will resolve #357 and #368 when the next release goes out.
2023-08-23 20:56:03 +07:00
Amaan Qureshi 42ab5ca0e6 0.20.2 2023-08-23 12:04:25 +07:00
Amaan Qureshi b92f8590f1 chore: update .gitattributes 2023-08-23 12:04:25 +07:00
Amaan Qureshi dd1d9afeab ci: add action to build & upload binaries to a release 2023-08-23 12:04:25 +07:00
Amaan Qureshi d9de99c953 chore: generate 2023-08-23 12:04:25 +07:00
Amaan Qureshi 04501d165f fix: regex was overconsuming in test commands 2023-08-23 12:04:25 +07:00
Amaan Qureshi e71b052060 fix: improve parameter expansions 2023-08-23 12:04:25 +07:00
Amaan Qureshi d22ee263e6 fix: arithmetic expansions 2023-08-23 12:04:25 +07:00
Amaan Qureshi a1fead6eb7 fix: move heredoc bodies inside heredoc_redirect 2023-08-23 12:04:25 +07:00
Amaan Qureshi 13b23426dc refactor!: separate heredoc_body and heredoc_end 2023-08-23 12:04:25 +07:00
Wilfred Hughes c6008c2638 Prefer .std() for declaring the C++ version 2023-08-23 00:00:29 +07:00
Wilfred Hughes 35bc02c599 Bump cc version 2023-08-22 23:53:16 +07:00
Amaan Qureshi f6eacf39e5 chore: generate 2023-08-23 01:32:46 +07:00
Amaan Qureshi b3a3b2ea12 fix: the alias hack isn't needed since '}' doesn't create terminal rules 2023-08-23 01:32:46 +07:00
Amaan Qureshi a8e6579ec3 fix: file_redirects can be a statement alone, test_command can be empty 2023-08-23 01:32:46 +07:00
Amaan Qureshi ef162f7402 fix: concatenations where the last item is a command substitution with backticks 2023-08-23 01:32:46 +07:00
Amaan Qureshi ce1c91528d feat: brace expressions 2023-08-23 01:32:46 +07:00
Amaan Qureshi 81d8b921e7
hack: alias '}' in expansions to be able to query them
This is a bug upstream w/ query compilation, and is needed for the time being.
2023-08-22 22:49:32 +07:00
Amaan Qureshi ec7c08da6c chore: update failures 2023-08-22 17:05:21 +07:00
Amaan Qureshi 5121f14787 chore: generate 2023-08-22 17:05:21 +07:00
Amaan Qureshi 0fdbe8f016 feat: support case conversions & expose anonymous nodes 2023-08-22 17:05:21 +07:00
Amaan Qureshi 414363421d fix: single line functions need a terminator 2023-08-22 17:05:21 +07:00
Amaan Qureshi 0cc3efa328 fix: don't parse heredocs if it's '<<=' 2023-08-22 17:05:21 +07:00
Amaan Qureshi 92037a32a6 fix: (()) is allowed as a null value, a number's base might be an expansion 2023-08-22 17:05:21 +07:00
Amaan Qureshi 877894e746 feat: improve arithmetic expansion parsing
This prevents many misparses when operators were immediately after a number, leading them to be parsed as commands/words
2023-08-22 17:05:21 +07:00
Amaan Qureshi 59392e7171 fix: handle parsing complex C-style for loops 2023-08-22 17:05:21 +07:00
Amaan Qureshi 8a26c9bc29 fix: disallow ';;' as a terminator for C-style for loops 2023-08-22 17:05:21 +07:00
Amaan Qureshi 9ed07205a7
0.20.1 2023-08-21 21:24:10 +07:00
Amaan Qureshi 04ab8903b7 chore: generate 2023-08-21 21:06:29 +07:00
Amaan Qureshi 4df27d721c fix(scanner): mark heredocs starting w/ a double quote or backslash as raw 2023-08-21 21:06:29 +07:00
Amaan Qureshi c4fc6932b6 fix: properly parse double backtick concats 2023-08-21 21:06:29 +07:00
Amaan Qureshi d7ba50f02c fix: allow repeated conditions in while statements 2023-08-21 21:06:29 +07:00
Amaan Qureshi 2bbda64a5f fix: parse bare `$` 2023-08-21 21:06:29 +07:00
Amaan Qureshi ed93d63542 fix: allow file redirects at the end of a function
This will parse functions w/ a redirect as a function def rather than redirect statement w/ a function def inside of it
2023-08-21 21:06:29 +07:00
Amaan Qureshi b3256b57d0 fix: allow parenthesized expressions inside subscripts 2023-08-21 21:06:29 +07:00
Amaan Qureshi 258b34e3af feat: support extglob patterns 2023-08-21 21:06:29 +07:00
Amaan Qureshi 6405349334 fix: don't scan heredocs in error recovery, it worsens output 2023-08-21 21:06:29 +07:00
Amaan Qureshi 4868ce43e2 fix: single line function definitions, expose special characters 2023-08-21 21:06:29 +07:00
Wilfred Hughes 9403e410c2 Merge commit 'c01fb4e38587e959b9058b8cd34b9e6a3068c827' 2023-08-21 08:52:30 +07:00
Wilfred Hughes 4fd36915b0 Rust parser is no longer forked 2023-08-18 23:08:36 +07:00
Wilfred Hughes fac4f3082b Update snapshot tests for new Rust parser 2023-08-18 23:07:54 +07:00
Wilfred Hughes ad17f28613 Update build script for bash parser no longer using C++ 2023-08-18 22:44:44 +07:00
Wilfred Hughes 3f042da6bf Updated Rust parser 2023-08-18 22:44:36 +07:00
Wilfred Hughes 2126a63c4c Add 'vendored_parsers/tree-sitter-rust/' from commit 'afb6000a71fb9dff3f47f90d412ec080ae12bbb4'
git-subtree-dir: vendored_parsers/tree-sitter-rust
git-subtree-mainline: c266bf23fc
git-subtree-split: afb6000a71
2023-08-18 22:35:38 +07:00
Wilfred Hughes c266bf23fc Remove tree-sitter-rust subtree so we can use the unforked upstream 2023-08-18 22:35:04 +07:00
Wilfred Hughes 050a81aadf Updated bash parser 2023-08-18 22:25:57 +07:00
Wilfred Hughes 881fcb553a Merge commit 'c0f5797a728fc4ebd78a8b0e436b1494a8ab5f51' 2023-08-18 22:25:00 +07:00
Amaan Qureshi afb6000a71 docs: update README 2023-08-18 15:46:49 +07:00
Amaan Qureshi 2697585ee0 0.20.4 2023-08-18 15:46:49 +07:00