diff options
author | A-Walrus | 2022-08-05 00:12:14 +0000 |
---|---|---|
committer | GitHub | 2022-08-05 00:12:14 +0000 |
commit | cfa882557eb24cf0bed0485d0811d3f35832ba4b (patch) | |
tree | 5470412f52a7c79e37e1f827e3b8e36ebd88864b /runtime/queries/devicetree | |
parent | f32c05db857c61fddb45b66d2ca1de2bd70b7db2 (diff) |
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
Diffstat (limited to 'runtime/queries/devicetree')
0 files changed, 0 insertions, 0 deletions