Commit Graph

10213 Commits (d9ef270d273e3f7c61e2e167b7efbd33b36d0c96)
 

Author SHA1 Message Date
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
Wilfred Hughes f91357b729 Update perl regression test 2022-04-23 11:33:01 +07:00
Wilfred Hughes bfcd4cc88a Add docs and syntax highlighting for Perl 2022-04-23 10:44:52 +07:00
Xuanwo 3c973f4530
Fix at upstream, remove workaround
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-23 02:07:09 +07:00
Xuanwo d5d2f7169e
Merge commit '8a13647a4d9ef6548320ca9ee4bf67d28960163e' into hcl 2022-04-23 02:06:41 +07:00
Xuanwo 8a13647a4d fix: Warning for no-missing-field-initializers
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 20:05:07 +07:00
Xuanwo 5a7ca84455
feat: Add highlights support for hcl
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-23 01:55:44 +07:00
Xuanwo 4b3213acdc
feat: Add HCL support
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-23 01:10:08 +07:00
Xuanwo 82c06d348a Add 'vendor/tree-sitter-hcl/' from commit 'd559c46ba170808b23a73da0cf49f315d221d095'
git-subtree-dir: vendor/tree-sitter-hcl
git-subtree-mainline: 72c606331a
git-subtree-split: d559c46ba1
2022-04-23 00:48:43 +07:00
Wilfred Hughes 72c606331a
Merge pull request #263 from Xuanwo/perl
feat: Add perl support
2022-04-22 09:26:38 +07:00