Commit Graph

10555 Commits (beacd69dd27f26bdb4c19c8806a786098ff05a06)
 

Author SHA1 Message Date
Wilfred Hughes 2d8e1cf180
Merge pull request #279 from Xuanwo/fix_bad_padding
fix: Bad padding of column numbers at the end of files
2022-05-07 11:27:47 +07:00
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
UserNobody14 f95876f0ed
Merge pull request #27 from hanywang2/mit-license
Add MIT license
2022-05-07 10:16:06 +07:00
Torsten Schmits ff5c879d9b fix test 2022-05-07 17:45:16 +07:00
Torsten Schmits ae026af6e7 permit negation of apats 2022-05-07 17:44:04 +07:00
Torsten Schmits 1bbbca2c7e Disallow CPP after spaces when parsing after newline
For some reason, the "column 0" check was only in place when checking
for CPP before newlines
2022-05-07 17:24:52 +07:00
Torsten Schmits b04e108df8 allow newline after unboxed opening brace 2022-05-07 17:20:55 +07:00
Torsten Schmits d602ceb36e remove the space node in unboxed sums 2022-05-07 17:00:17 +07:00
Torsten Schmits 670fdac229 improve unboxed tuples 2022-05-07 16:00:00 +07:00
Torsten Schmits 88caf2b7fa add flatparse to examples 2022-05-07 14:31:54 +07:00
Torsten Schmits ec8e07c1ba support nullary and unary unboxed tuples in types 2022-05-07 14:28:52 +07:00
Torsten Schmits 60bc6ef282 Support unboxed tuples in patterns 2022-05-07 14:08:42 +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
Matt Massicotte 29f53d8f4f
Makefile and C bindings (#38) 2022-05-06 09:01:49 +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
Jonathan Arnett 6e2e92b4ad Version 0.21.0 2022-05-04 14:41:53 +07:00
Jonathan Arnett b249843e44
Add support for v0.21.0 (aka add bang negation) (#24) 2022-05-04 14:37:31 +07:00
Nikola Ubavić f194fcb08a
fix: links (#78) 2022-05-04 13:36:51 +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
Xuanwo aee75d0bf4
feat: Improve binary content guess
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 15:04:41 +07:00
Xuanwo 5cfe53820b
chore: Update compare expected
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 14:45:25 +07:00
Xuanwo 94674a1e55
fix: Bad padding of column numbers at the end of files
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 14:38:10 +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
Damien Guard fcb2b6f7cb
Update README.md 2022-05-01 16:44:38 +07:00
Damien Guard e8266a8fee
Add coverage for generic attributes 2022-04-30 18:06:14 +07:00
Damien Guard 06136726dd
Add C# 11 to README, add cases for currently supported 2022-04-30 18:03:11 +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
Hendrik van Antwerpen 39a11c8330
Merge pull request #111 from tree-sitter/update-tree-sitter-version
Bump tree-sitter version to 0.20
2022-04-28 20:50:54 +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
Hendrik van Antwerpen 63cc2e7613 Bump tree-sitter version to 0.20 2022-04-28 12:23:27 +07:00
Wilfred Hughes f5b07f265a Fix changelog heading 2022-04-27 21:51:29 +07:00