Commit Graph

10555 Commits (beacd69dd27f26bdb4c19c8806a786098ff05a06)
 

Author SHA1 Message Date
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
Matt Massicotte 332fda0b38
Makefile and C bindings (#110) 2022-04-27 14:27:40 +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
Xuanwo 20289dfe91
fix: Expected compare not updated
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 19:00:00 +07:00
Xuanwo 9dd5542031
fix: Perl atom should be quoted
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 18:42:50 +07:00
Wilfred Hughes 77aa46a6f9 Disable codecov comments on PRs
It tends to be slightly distracting.
2022-04-22 00:53:48 +07:00
Wilfred Hughes 91c3102666 Update changelog for previous commit 2022-04-22 00:51:51 +07:00
Xuanwo a143d75727
fix: Remove trailing lines before calculating max_lines (#261)
* fix: Remove trailing lines before calculating max_lines

Signed-off-by: Xuanwo <github@xuanwo.io>

* refactor: Code cleanup for max_lines

Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 00:50:26 +07:00
Xuanwo b85f996ff0
feat: Add perl support
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 10:14:19 +07:00
Xuanwo 79ee12013c Add 'vendor/tree-sitter-perl/' from commit 'bbf86084d9b7eb4768f3fb9fe094b3e0600057b1'
git-subtree-dir: vendor/tree-sitter-perl
git-subtree-mainline: 80429e9697
git-subtree-split: bbf86084d9
2022-04-22 09:40:37 +07:00
Simon Willshire 137e1ce6a0
Bump tree-sitter to 0.20, expose highlight binding for rust (#20)
Co-authored-by: Simon Willshire <me@simonwillshire.com>
2022-04-21 11:20:07 +07:00
Wilfred Hughes 80429e9697 Include cargo version in the generated manual 2022-04-21 00:31:06 +07:00
Max Brunsfeld 5d992d9dd4 0.20.0 2022-04-20 17:23:11 +07:00