Commit Graph

13634 Commits (b9a1302e54588b87bc89db0685eefbd4804f4de3)
 

Author SHA1 Message Date
Wilfred Hughes a4ee2cf99e cargo fmt 2023-08-26 21:41:41 +07:00
Wilfred Hughes b78ba2da4b Use type names from line_numbers directly 2023-08-26 20:36:07 +07:00
Wilfred Hughes 41c9165c79 Use my line_numbers crate for newline position calculations 2023-08-26 16:25:32 +07:00
Wilfred Hughes 79b4e44113 Update changelog for today's releases and roll version 2023-08-25 09:26:28 +07:00
Wilfred Hughes 3f3526ded4 Don't create a release on crates.io if other steps failed 2023-08-25 08:53:44 +07:00
Wilfred Hughes 8752af74d4 Test and release macOS ARM64 on macos-latest runners 2023-08-25 08:45:35 +07:00
Wilfred Hughes cc4630a060 Don't stop building release assets if one fails 2023-08-25 08:44:40 +07:00
Wilfred Hughes 5ef117e28d Next release will be 0.51.1 2023-08-25 08:44:09 +07:00
Wilfred Hughes ca44de78e1 Group overrides from the same language together
No functional change, but makes --list-languages easier to read.

Fixes #549
2023-08-25 08:22:28 +07:00
Wilfred Hughes 21cdbe177c Update to latest itertools 2023-08-24 08:52:42 +07:00
Wilfred Hughes 0db99d76c6 Allow a language override to include multiple globs 2023-08-24 08:47:59 +07:00
Wilfred Hughes 72475493a4 Tweak wording 2023-08-24 08:19:27 +07:00
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