Commit Graph

3013 Commits (d99ada157308eb34a122004a67c68c3be5f77a85)
 

Author SHA1 Message Date
Wilfred Hughes 33251f9e1a Factor out a Mode struct 2021-08-27 22:21:24 +07:00
Wilfred Hughes 35779dde2e Remove unused --lang argument 2021-08-27 22:11:30 +07:00
Wilfred Hughes aff0131ecb Define a separate files.rs for reading and content checking 2021-08-27 22:08:32 +07:00
Wilfred Hughes ce2d6dee54 Factor out argument parsing from main function 2021-08-27 22:05:24 +07:00
Wilfred Hughes 594473ab2d Prefer static strings where possible 2021-08-27 21:50:56 +07:00
Wilfred Hughes 81ffcecc49 Clarify comment 2021-08-27 21:49:16 +07:00
Wilfred Hughes 309e4bc02c Match delimiter tokens based on their content 2021-08-26 23:51:06 +07:00
Wilfred Hughes bda2ce7d11 Improve string literals in tree-sitter parsers 2021-08-26 23:35:19 +07:00
Wilfred Hughes a2de2eb241 Add a string literal to CSS sample files 2021-08-26 23:21:35 +07:00
Wilfred Hughes 81dae0a15e Allow a per-language atom_nodes configuration for tree-sitter parsers 2021-08-26 23:18:00 +07:00
Wilfred Hughes 554ca8bb95 Factor out a config struct for tree sitter parsers 2021-08-26 23:02:33 +07:00
Wilfred Hughes 9eaefa3ec1 Treat JSON strings as indivisible 2021-08-26 22:42:48 +07:00
Wilfred Hughes d5ce3e626f Fix missing string pattern for JSON parser 2021-08-24 01:12:11 +07:00
Wilfred Hughes 763b9d2d17 Roll version 2021-08-24 01:07:07 +07:00
Wilfred Hughes 3123544bed Use an explicit version for cc 2021-08-24 01:04:38 +07:00
Wilfred Hughes efcb02c56c Configure vendor/ for packaging 2021-08-24 01:02:32 +07:00
Wilfred Hughes 5d67ad3bea Merge display sections in changelog 2021-08-24 00:23:32 +07:00
Wilfred Hughes 302e9e2558 Avoid the term 'dogfooding' for clarity 2021-08-24 00:22:33 +07:00
Wilfred Hughes 832bf5c2a5 Update file name 2021-08-24 00:21:14 +07:00
Wilfred Hughes f17e0a5e0a Support colour when using git with a pager
Closes #29
2021-08-24 00:20:34 +07:00
Wilfred Hughes f55ca3bbcf cargo fmt 2021-08-23 23:12:50 +07:00
Wilfred Hughes fad0775315 Fix crash on renaming files 2021-08-22 23:51:41 +07:00
Wilfred Hughes dff8eb0a65 Be more specific when called with the wrong number of arguments 2021-08-22 23:37:03 +07:00
Wilfred Hughes 4a48540975 Improve string handling for tree-sitter parsing with Rust 2021-08-22 12:10:40 +07:00
Wilfred Hughes d3317b5f02 Skip end delimiters when parsing Clojure 2021-08-22 12:02:37 +07:00
Wilfred Hughes 58ae3996fc rustfmt 2021-08-21 22:51:34 +07:00
Wilfred Hughes 43902c3fa9 Include language name in tree-sitter parsing mode 2021-08-21 22:36:44 +07:00
Wilfred Hughes 47a83d4717 Rename sitter to tree_sitter_parser for consistency 2021-08-21 22:15:34 +07:00
Wilfred Hughes 6a83368a4f Split parse into regex_parser and line_parser 2021-08-21 22:13:04 +07:00
Wilfred Hughes 7e30b8cc04 Only rebuild C files if the relevant dir changes 2021-08-21 19:24:54 +07:00
Wilfred Hughes 80ba6f3749 Get tests running again 2021-08-21 19:24:28 +07:00
Wilfred Hughes edb41a9ceb Fix missing closing doublequote in string literals from previous commit 2021-08-21 19:19:34 +07:00
Wilfred Hughes 001a36a7e3 Define regexp parsers in code rather than TOML 2021-08-21 19:13:01 +07:00
Wilfred Hughes 5768b2bcfa Support tree-sitter parser with .mli files 2021-08-19 22:58:55 +07:00
Wilfred Hughes 37ea94a53d cargo fmt 2021-08-17 09:24:18 +07:00
Wilfred Hughes bdd3667420 Mention tree-sitter in readme 2021-08-16 22:33:07 +07:00
Wilfred Hughes 6f1a069a75 Document usage of tree-sitter 2021-08-16 22:30:12 +07:00
Wilfred Hughes 940a25bda1 Merge branch 'tree_sitter_prototype' 2021-08-16 22:28:46 +07:00
Wilfred Hughes 69033f3cd2 Make the tree-sitter parser opt-in 2021-08-16 22:28:07 +07:00
Wilfred Hughes 48b003eca6 Hook up tree-sitter-clojure 2021-08-16 22:26:18 +07:00
Wilfred Hughes 1b3c54139b Add 'vendor/tree-sitter-clojure/' from commit '39bf0977d223879436c1425fe6bfeb3bcfd86f92'
git-subtree-dir: vendor/tree-sitter-clojure
git-subtree-mainline: 47d888c140
git-subtree-split: 39bf0977d2
2021-08-16 22:18:08 +07:00
Wilfred Hughes 47d888c140 Add a JSX test file 2021-08-16 22:17:32 +07:00
Wilfred Hughes 91f80d8245 Document adding a parser 2021-08-16 22:17:25 +07:00
Wilfred Hughes 4fae2e9ef5 Hook up tree-sitter-ocaml for .mli files 2021-08-16 22:08:55 +07:00
Wilfred Hughes 96673ee2d6 Remove unnecessary flag 2021-08-16 22:08:38 +07:00
Wilfred Hughes 8ddb51ac82 Hook up tree-sitter-ocaml 2021-08-16 22:00:16 +07:00
Wilfred Hughes 28e824ca6c Support C++ files in tree-sitter parsers 2021-08-16 21:48:00 +07:00
Wilfred Hughes 49d7750285 Allow each tree-sitter package to specify its files to build 2021-08-16 21:33:11 +07:00
Wilfred Hughes 4a6bb3db1f Add 'vendor/tree-sitter-ocaml/' from commit '0348562f385bc2bd67ecf181425e1afd6d454192'
git-subtree-dir: vendor/tree-sitter-ocaml
git-subtree-mainline: 7f259afc79
git-subtree-split: 0348562f38
2021-08-16 20:53:23 +07:00
Wilfred Hughes 7f259afc79 Hook up tree-sitter-javascript for .js and .jsx 2021-08-16 00:21:56 +07:00