Commit Graph

10230 Commits (5103389d2332a94e5277e42f6c7e708f3aee59ca)
 

Author SHA1 Message Date
Wilfred Hughes 5103389d23 Mention Elvish in changelog 2022-05-07 11:26:35 +07:00
Wilfred Hughes 5a09e9b3f7
Merge pull request #226 from cherryblossom000/elvish
Add Elvish support
2022-05-07 11:25:33 +07:00
Zachary Dremann 1fb8ba7ee4 Add fixes suggested by clippy 2022-05-07 11:18:14 +07:00
cherryblossom defc084637
Add Elvish support
Add support for [Elvish](https://elv.sh).
2022-05-07 20:12:43 +07:00
cherryblossom ffcb39e041 Add 'vendor/tree-sitter-elvish/' from commit 'e50787cadd3bc54f6d9c0704493a79078bb8a4e5'
git-subtree-dir: vendor/tree-sitter-elvish
git-subtree-mainline: a8d064eacf
git-subtree-split: e50787cadd
2022-05-07 20:10:28 +07:00
Wilfred Hughes a8d064eacf Include line number when debug printing lists 2022-05-05 20:38:29 +07:00
Wilfred Hughes 59cea9f00a cargo fmt 2022-05-05 00:04:44 +07:00
Wilfred Hughes dd8be0ca28 Use reference counted pointers to Vertex
Previously we'd store whole copies of the Vertex (the heap and the
predecessors hashmap). A vertex is 56 bytes, and a pointer is only 8
bytes.

This reduces instruction counts by 12% on slow_before.rs (3.4M to
3.0M) and other files I've tested also see a 12% improvement.
2022-05-04 19:40:08 +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