Amaan Qureshi
6f050f0da5
fix: properly handle utf8 code points for highlight and tag assertions
2024-09-22 01:03:59 -04:00
Hanlu
ff813a311b
fix: correct comment quote
2024-09-16 21:39:49 -04:00
Amaan Qureshi
5e46fef0d7
chore: clippy lints
2024-09-07 20:31:20 -04:00
Amaan Qureshi
b35efa8f33
style: format imports
2024-04-11 22:35:43 -04:00
Amaan Qureshi
4ff33e81bb
fix(assertions): case shouldn't matter for comment node detection
2024-02-29 02:17:30 -05:00
Amaan Qureshi
04ff704bca
chore(cli): apply clippy fixes
2024-02-04 04:18:48 -05:00
Max Brunsfeld
da16cb1459
Introduce language ref-count management C APIs, remove Copy impl for Language in Rust
2023-12-27 14:59:16 -08:00
Amaan Qureshi
68b1006a3b
feat: add negative assertions, remove duplicate code
2023-07-25 00:27:34 -04:00
Max Brunsfeld
8fa875b1a4
Fix possible infinite loop when running syntax highlighting tests
...
Fixes #1347
2021-08-29 15:04:23 -07:00
Douglas Creager
d2d01e77e3
cli: Use anyhow and thiserror for errors
...
This patch updates the CLI to use anyhow and thiserror for error
management. The main feature that our custom `Error` type was providing
was a _list_ of messages, which would allow us to annotate "lower-level"
errors with more contextual information. This is exactly what's
provided by anyhow's `Context` trait.
(This is setup work for a future PR that will pull the `config` and
`loader` modules out into separate crates; by using `anyhow` we wouldn't
have to deal with a circular dependency between with the new crates.)
2021-06-09 16:17:23 -04:00
Patrick Thomson
cc8f978b3b
inline this lambda
2020-11-23 12:05:32 -05:00
Patrick Thomson
e1da6e554b
Remove fanciful nomenclature.
2020-11-23 12:01:08 -05:00
Patrick Thomson
6764b803a0
Allow overlap in specs.
2020-11-23 11:58:07 -05:00
Patrick Thomson
4604b40b72
better name for capture regex
2020-11-10 16:23:39 -05:00
Patrick Thomson
50bccdf5da
rename Assertion.expected to expected_capture_name
2020-11-10 16:20:51 -05:00
Patrick Thomson
0bd223f032
Better naming for this regex.
2020-10-27 13:11:57 -04:00
Patrick Thomson
1aee60a7c0
propitiate the tests
2020-10-26 14:35:18 -04:00
Patrick Thomson
6adeb7b40d
move shared code to query_testing
2020-10-26 14:27:33 -04:00