Commit Graph

185 Commits (main)

Author SHA1 Message Date
Brian Hicks 9e1bb159d4 re-add the rest of the lanaguages 2021-08-16 08:05:59 -05:00
Brian Hicks 2f23ff4eed use upper-case meta var, per convention 2021-08-16 05:51:07 -05:00
Brian Hicks 4b35d73ed0 list languages 2021-08-16 05:50:26 -05:00
Brian Hicks 34f41d1af2 replace this TODO with an explanation 2021-08-16 05:45:01 -05:00
Brian Hicks 3669192353 nah, this is fine 2021-08-16 05:43:58 -05:00
Brian Hicks 6e3f80909c remove the 1.0.0 branch 2021-08-16 05:43:23 -05:00
Brian Hicks f4b26cdab2 borrow instead of cloning the name 2021-08-16 05:41:26 -05:00
Brian Hicks 905301334c this just won't be called if there are no matchers 2021-08-16 05:39:37 -05:00
Brian Hicks 20125bedc3 get rid of the other thing we used language for 2021-08-16 05:39:09 -05:00
Brian Hicks d0d20f56d2 only call language.language() once 2021-08-16 05:31:01 -05:00
Brian Hicks 2b55e97230 add a match name if none is provided 2021-08-16 05:28:47 -05:00
Brian Hicks fdd4707efe proactively disable underscored captures 2021-08-16 05:19:47 -05:00
Brian Hicks 063e1ed814 precalculate which items to keep or drop 2021-08-15 15:04:52 -05:00
Brian Hicks 641a6717a8 remove names that start with _ 2021-08-15 14:55:44 -05:00
Brian Hicks 62c049dc1b use a global allocator 2021-08-15 05:50:34 -05:00
Brian Hicks 894750afda clean up imports 2021-08-15 05:48:45 -05:00
Brian Hicks 0469f7d161 get rid of the custom wrapper 2021-08-13 17:28:55 -05:00
Brian Hicks 2e1ef80a71 rearrange fields to match definition 2021-08-13 16:34:24 -05:00
Brian Hicks 7e63b5a809 write JSON output 2021-08-13 16:28:11 -05:00
Brian Hicks 931b4694f9 add format argument to the opts 2021-08-13 15:51:25 -05:00
Brian Hicks 68f0913ee2 don't put extra blank lines between match lines 2021-08-13 11:06:12 -05:00
Brian Hicks 3199981b5c actually format things! 2021-08-13 11:04:40 -05:00
Brian Hicks 1e181f44a4 refine error message for parse failures 2021-08-13 08:43:46 -05:00
Brian Hicks 408870a2a0 only print files with matches 2021-08-13 08:17:30 -05:00
Brian Hicks 05e8adc1c7 capture captures 2021-08-13 06:25:52 -05:00
Brian Hicks 10b85bea5d extract more information to the match 2021-08-13 06:05:51 -05:00
Brian Hicks e8508063ec extract to a sub-struct 2021-08-13 06:02:56 -05:00
Brian Hicks 566e6ef662 initialize the parser per-batch 2021-08-13 05:49:11 -05:00
Brian Hicks fe00e50f24 extract matches! 🎉 2021-08-13 05:30:49 -05:00
Brian Hicks 82a2586ae5 🎨 2021-08-12 17:15:41 -05:00
Brian Hicks 26040d45ab add a note for later 2021-08-12 17:15:41 -05:00
Brian Hicks 9a83408aa6 capture stuff in the query 2021-08-12 17:08:28 -05:00
Brian Hicks dd051a7316 parse a tree 2021-08-12 16:48:58 -05:00
Brian Hicks f2414a17da read source to string 2021-08-12 06:20:13 -05:00
Brian Hicks 418fce046a only use one implementation
traits don't work like I thought!
2021-08-12 06:10:01 -05:00
Brian Hicks 107d4f2a86 🎨 2021-08-12 05:56:20 -05:00
Brian Hicks edc26eb7b6 implement SingleChoice 2021-08-12 05:55:47 -05:00
Brian Hicks d4ee16bf11 be more precise in this error message 2021-08-12 05:55:38 -05:00
Brian Hicks 1a6f2e3069 finish doing our matching 2021-08-12 05:47:57 -05:00
Brian Hicks fbaf17e1cb return a borrow 2021-08-12 05:37:50 -05:00
Brian Hicks ad0b402d7f clean up clippy warnings 2021-08-12 05:37:36 -05:00
Brian Hicks e896f1e8a8 wire up the matchers 2021-08-12 05:31:53 -05:00
Brian Hicks fe99561394 print some stuff 2021-08-11 20:56:43 -05:00
Brian Hicks af29e39d8c start pulling out an extractor 2021-08-11 20:53:01 -05:00
Brian Hicks fb1ef1232b finish out the sketch of matching 2021-08-11 06:11:30 -05:00
Brian Hicks c5e1c50bc5 separate the code into stages 2021-08-11 05:46:33 -05:00
Brian Hicks 4933e9d9a6 do filetype match filtering myself 2021-08-11 05:36:31 -05:00
Brian Hicks cbb2a8bac4 figure out which matcher we want 2021-08-11 05:34:11 -05:00
Brian Hicks 64de569ae9 stop reading for now 2021-08-11 05:25:38 -05:00
Brian Hicks 119c120c95 combine queries 2021-08-10 20:33:45 -05:00