helix-mods/helix-core
A-Walrus cfa882557e
Fix nondeterministic highlighting (#3275)
* Fix nondeterministic highlighting

This is done by prefering matches in the begining, ie for
`keyword.function`, `keyword` is a better match than `function`.

* Use all positions and not just leftmost

Fixes possible edgecase with something like `function.method.builtin`
and the queries `function.builtin` and `function.method`

* Switch to bitmask for slightly better performance

* Make matches from the start of string

Also change comments to match new behaviour
2022-08-05 09:12:14 +09:00
..
src Fix nondeterministic highlighting (#3275) 2022-08-05 09:12:14 +09:00
tests Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml build(deps): bump similar from 2.1.0 to 2.2.0 (#3293) 2022-08-02 10:06:46 +09:00