Commit Graph

13984 Commits (1dc45d84c62644709ef20126aa8522bb2e574ef4)
 

Author SHA1 Message Date
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
Amaan Qureshi 51b9f7dcf1 chore: update manifests 2023-08-18 15:46:49 +07:00
Amaan Qureshi 87236187cf ci: update ci and publish, add fuzz annd lint actions 2023-08-18 15:46:49 +07:00
Amaan Qureshi 2d983fd941 feat: eslint formatting & code docs, update deps 2023-08-18 15:46:49 +07:00
Amaan Qureshi 54b199ab39 chore: move corpus to test 2023-08-18 15:46:49 +07:00
Amaan Qureshi c91f9624a4 chore: generate 2023-08-18 15:46:49 +07:00
Amaan Qureshi f452031f58 refactor: better handling of token tree characters
Queries to capture these symbols now works
2023-08-18 15:46:49 +07:00
Amaan Qureshi 72a14b7d5e fix: shebang lexical precedence 2023-08-18 15:46:49 +07:00
Amaan Qureshi 2f1bf0965f chore: generate 2023-08-18 14:49:38 +07:00
Amaan Qureshi d2cd391d00 feat: support shebangs 2023-08-18 14:49:38 +07:00