Commit Graph

10222 Commits (9e1c76bc65c6bb2615a485a73997a71ea2e3dad4)
 

Author SHA1 Message Date
Xuanwo 9e1c76bc65
Update rust-toolchain.toml
Co-authored-by: Wilfred Hughes <me@wilfred.me.uk>
2022-05-08 02:48:12 +07:00
Xuanwo 3939359617
ci: Use stable rust for code coverage
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 15:56:59 +07:00
Xuanwo 72533ab325
ci: Adopt rust-toolchain instead
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 15:53:42 +07:00
Wilfred Hughes 87cddc7577 Prefer SyntaxId in Vertex definition 2022-05-02 22:00:08 +07:00
Wilfred Hughes 14fe645f78 Define a type alias for Syntax IDs 2022-05-02 21:43:06 +07:00
Wilfred Hughes 4db120449d Treat more Perl pattern literals as atoms 2022-04-29 18:37:02 +07:00
Wilfred Hughes 03c5d78650 Treat perl regexes as atoms too 2022-04-29 18:28:01 +07:00
Wilfred Hughes 3bb5933163 Ensure Perl comments are treated as atoms with an atom kind of comment 2022-04-29 18:23:31 +07:00
Wilfred Hughes 75a3624f7c Treat files with null bytes as binary 2022-04-29 18:08:38 +07:00
Wilfred Hughes d9ef270d27 Make include patterns stricter
This slightly reduces the size of the crate uploaded to crates.io.
2022-04-29 17:31:28 +07:00
Wilfred Hughes 77fb9cd179 Roll version 2022-04-29 16:52:45 +07:00
Wilfred Hughes 4c7ab48091 Pass DisplayOptions as a single argument to print functions 2022-04-29 12:22:08 +07:00
Wilfred Hughes 12ef8f97da Allow syntax highlighting to be disabled
Fixes #265
2022-04-29 12:12:21 +07:00
Wilfred Hughes 974a7bd765 Remove unused import 2022-04-29 12:02:32 +07:00
Wilfred Hughes dc51e154b8 Choose colour mode when parsing options 2022-04-28 21:10:26 +07:00
Wilfred Hughes 005f62c5b0 Group display options into a single struct 2022-04-28 21:07:12 +07:00
Wilfred Hughes e1cbdc1478 Allow users to override the tab width
Fixes #274
2022-04-28 20:47:04 +07:00
Wilfred Hughes 72eba2d426 Added Swift support
Closes #225
2022-04-28 09:29:58 +07:00
Wilfred Hughes 62e5b21d53 Merge remote-tracking branch 'cherryblossom/swift' 2022-04-28 09:12:54 +07:00
Wilfred Hughes f5b07f265a Fix changelog heading 2022-04-27 21:51:29 +07:00
Wilfred Hughes f98f2a8aca Fix directory diffing when files were only present on one side
This particularly helps usage with mercurial when files are added or
removed.

Fixes #272
2022-04-27 21:46:46 +07:00
Wilfred Hughes dd31fd3a2b Wrap help messages according to the terminal width 2022-04-26 22:38:23 +07:00
Wilfred Hughes 1b90fcd6aa Don't assume paths are valid UTF-8 2022-04-26 22:33:42 +07:00
Wilfred Hughes b5b6e15b5e cargo fmt 2022-04-26 22:06:54 +07:00
cherryblossom b87d6c99f7
Add Swift support 2022-04-26 17:08:23 +07:00
cherryblossom 782b8f809e
Add 'vendor/tree-sitter-swift/' from commit '9b4350e513cb03fdd3e670069a30859ff82d532d'
git-subtree-dir: vendor/tree-sitter-swift
git-subtree-mainline: 6a404f51a8
git-subtree-split: 9b4350e513
2022-04-26 16:40:07 +07:00
Alex Pinkus (Bot) 9b4350e513 Updating top repository version 2022-04-25 20:16:28 +07:00
Wilfred Hughes 6a404f51a8 Remove unused trait impl
Hash is error-prone for Syntax, see #268
2022-04-24 20:26:36 +07:00
Wilfred Hughes a7aa0ae00b Merge branch 'change_state_outside' 2022-04-24 20:25:04 +07:00
Wilfred Hughes f7c09510a1 HCL: document and add more file extensions 2022-04-24 20:21:10 +07:00
Wilfred Hughes ee0f1ee7f2 Diff files in directories in parallel 2022-04-24 20:17:47 +07:00
Wilfred Hughes a9af73d944 Add a second file to the test directory 2022-04-24 20:13:17 +07:00
Wilfred Hughes 8f50fcf90c Store nodes by unique ID in ChangeMap 2022-04-24 12:07:51 +07:00
Wilfred Hughes 394e1a3482 Define a ChangeMap struct 2022-04-24 12:06:08 +07:00
Wilfred Hughes 6a900f4a88 Remove .change accessor 2022-04-24 11:46:30 +07:00
Wilfred Hughes 950cfbebfb Remove syntax change setters 2022-04-24 11:25:54 +07:00
Wilfred Hughes 1767800f29 Remove calls to .set_change() 2022-04-24 11:16:58 +07:00
Wilfred Hughes 625e9935e1 Stop change state from being public on Syntax 2022-04-24 11:03:13 +07:00
Wilfred Hughes f644e7a5f0 Pass change_map through 2022-04-24 10:53:13 +07:00
Wilfred Hughes 715d71b6b4 Set deep in changes.rs 2022-04-24 10:49:49 +07:00
Wilfred Hughes d460ce4dcc Define a ChangeMap type 2022-04-24 10:40:57 +07:00
Wilfred Hughes a3e944df0d Define a separate changes file 2022-04-24 10:36:15 +07:00
Wilfred Hughes 36293ce5d4 Pass change_kinds through unchanged logic 2022-04-24 10:31:09 +07:00
Wilfred Hughes afc0a4d8af Initial work factoring out Syntax change state 2022-04-24 10:25:27 +07:00
Wilfred Hughes b2320b29d5
Merge pull request #264 from Xuanwo/hcl
feat: Add HCL support
2022-04-24 08:48:34 +07:00
Xuanwo d4c3d114dc
fix: Add atoms for hcl
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-24 15:57:51 +07:00
Alex Pinkus (Bot) 103d4f194b Updating top repository version 2022-04-23 22:01:41 +07:00
Wilfred Hughes c8c7d3570e Improve JSON detection 2022-04-23 18:55:13 +07:00
Wilfred Hughes 664c1883f6 Remove completed TODO 2022-04-23 18:51:12 +07:00
Wilfred Hughes 2b901d5de2 Clarify parser licenses 2022-04-23 11:38:30 +07:00