Commit Graph

13265 Commits (syntax_id)
 

Author SHA1 Message Date
Wilfred Hughes 448972f8a3 Roll version 2023-07-26 20:02:23 +07:00
Wilfred Hughes d58e3194c8 Move release logic to justfile 2023-07-26 20:01:25 +07:00
FW 06a2f6e71c
Merge pull request #94 from amaanq/fixes
Some scanner fixes
2023-07-27 03:53:13 +07:00
FW f1be302f32
Merge pull request #93 from HerringtonDarkholme/main
feat: support unicode identifier
2023-07-27 03:46:50 +07:00
Amaan Qureshi bae4cdccbf
fix: apply some clang-tidy lints 2023-07-26 20:27:56 +07:00
Amaan Qureshi 4ca44145dd
fix: mark helper functions static 2023-07-26 20:26:21 +07:00
Amaan Qureshi d181a97381
fix: mark `scan` static to avoid naming conflicts with other scanners (#6) 2023-07-27 07:38:44 +07:00
Wilfred Hughes 0cb1cdbb3e Document MSRV for newer bumpalo 2023-07-26 15:12:55 +07:00
Wilfred Hughes 65b235be28 Move to edition 2021 2023-07-26 15:06:21 +07:00
Wilfred Hughes 070dc3b4a5 Update crossterm version
This provides some minor bugfixes for Windows width detection:
https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md

This cherry-picks a525196635, after the
MSRV bump.
2023-07-26 14:56:52 +07:00
Wilfred Hughes b3acf48128 Bump minimum required Rust version to 1.58
Difftastic is generally conservative about MSRV, and will only
increase the version when there is a compelling reason (e.g. major
performance improvement, important bug fix in a dependendency).

This version increase will enable us to upgrade crossterm to 0.26, which
has better detection of terminal width on Windows.

I've also clarified MSRV details for other dependencies that cannot
currently be upgraded.
2023-07-26 11:34:05 +07:00
Wilfred Hughes 721ad0863d Revert "Update crossterm version"
This reverts commit a525196635.

Looks like it doesn't compile on Rust 1.57.
2023-07-26 11:17:50 +07:00
Amaan Qureshi bbaa67a180
0.20.0 2023-07-26 05:48:29 +07:00
Amaan Qureshi 3c35178a65
chore: update CI action 2023-07-26 05:48:29 +07:00
Amaan Qureshi 32ed43a2b5
Merge pull request #126 from amaanq/fixes
Misc. Fixes
2023-07-26 04:58:24 +07:00
Amaan Qureshi f18130bae7
chore: update & format manifests & bindings 2023-07-26 02:05:59 +07:00
Amaan Qureshi 2e2dd6b434
feat: add eslint formatting & ci action 2023-07-26 02:05:29 +07:00
Amaan Qureshi 10466ba6c5
chore: move corpus to test/corpus 2023-07-26 01:53:50 +07:00
Amaan Qureshi 6b7da54db9
chore: generate 2023-07-25 18:45:06 +07:00
Amaan Qureshi 77fe39625e
ci: add a release action 2023-07-25 18:44:35 +07:00
Amaan Qureshi 0308e24c57
fix: allow EOF to terminate a program 2023-07-25 18:43:18 +07:00
Wilfred Hughes 13c67177c0 Print possible targets when running just with no arguments 2023-07-24 22:38:57 +07:00
Wilfred Hughes ff5165ef72 Update strum dependency 2023-07-24 22:30:46 +07:00
Wilfred Hughes f15a7c728d Define a justfile for common commands 2023-07-24 22:11:46 +07:00
Wilfred Hughes 69da133ab0 Merge commit '2c7aff437deed72bbceceab95797b3909cc4627d' 2023-07-24 21:50:22 +07:00
Wilfred Hughes f43e91faf7 Merge commit 'ad095896dd223f1c22b85ac5ec84ab11fb732b07' 2023-07-24 21:28:47 +07:00
Amaan Qureshi ad095896dd
0.20.4 2023-07-24 15:35:34 +07:00
Amaan Qureshi e17d0a1602
feat: rework release action 2023-07-24 15:35:07 +07:00
Amaan Qureshi cc565c46f9
Merge pull request #156 from amaanq/fixes
Some fixes
2023-07-24 15:22:02 +07:00
Wilfred Hughes 5374dc4452 Clarify wording and difftastic's status in Tricky Cases 2023-07-24 08:46:20 +07:00
Wilfred Hughes 8da6efa262 Suggest --locked when people install with cargo 2023-07-24 08:25:01 +07:00
Amaan Qureshi 0cc26b0e3b
chore: generate 2023-07-24 05:23:35 +07:00
Amaan Qureshi 7b8332686e
chore: add tests 2023-07-24 05:23:19 +07:00
Amaan Qureshi 41c0a15e09
fix: make preproc newlines immediate so they don't span excess trailing newliens 2023-07-24 05:23:19 +07:00
Amaan Qureshi 5890e77d2d
fix: disallow `/` after `\S` to better handle comments in preproc_arg 2023-07-24 05:05:28 +07:00
Amaan Qureshi f3559c6cb4
fix: swap precedences of assignnment and conditional expressions
`a *= b != c ? d : e;` is parsed incorrectly as a result
2023-07-24 04:17:56 +07:00
Amaan Qureshi 2c7aff437d
Merge pull request #216 from amaanq/update
Update grammar from changes in C
2023-07-24 00:21:14 +07:00
Stephan Seitz b050649c68
refactor: remove unused function `skip` in scanner (#215) 2023-07-23 22:39:58 +07:00
Amaan Qureshi 745ad8f5dd
chore: generate 2023-07-23 22:49:10 +07:00
Amaan Qureshi 7ce69cb41d
fix: remove `_typedef_type_specifier`, use git version of tree-sitter-c 2023-07-23 22:47:15 +07:00
Amaan Qureshi fcd123005b
Merge pull request #155 from amaanq/fix-attribute
feat: add `attribute_specifier` to struct
2023-07-23 22:32:36 +07:00
Amaan Qureshi 0dd318d271
fix: update `if_statement` to align with C 2023-07-23 22:31:45 +07:00
Wilfred Hughes a525196635 Update crossterm version
This provides some minor bugfixes for Windows width detection:
https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md
2023-07-23 10:32:49 +07:00
Amaan Qureshi 4b6e0bc97b
feat: add `attribute_specifier` to struct 2023-07-22 05:48:59 +07:00
Amaan Qureshi 475dc3bb84
Merge pull request #152 from amaanq/typedef-fixes
Typedef fixes
2023-07-21 12:39:30 +07:00
Wilfred Hughes 1b9844cd60 Add sliders to the glossary
Fixes #537
2023-07-21 08:39:53 +07:00
Wilfred Hughes 4e9637c861 Check more bytes when detecting encoding
I've observed PDF files that have sufficiently large headers that they
were detected as text, which wasn't helpful.

Also improve logging to report how many invalid bytes were found.
2023-07-21 08:34:41 +07:00
Wilfred Hughes 1c0b3153df Fix typo 2023-07-21 08:32:17 +07:00
Wilfred Hughes 4f750ec359 Clarify how to find language names in argument help 2023-07-21 08:23:36 +07:00
Amaan Qureshi 349f3bb3f4 chore: generate & update test 2023-07-21 05:34:34 +07:00