aboutsummaryrefslogtreecommitdiff
path: root/helix-syntax
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-01 04:08:20 +0000
committerBlaž Hrastnik2021-12-01 04:08:20 +0000
commit259678585c3410044683bf4d2619b2d024a04514 (patch)
tree207a827dded75a761bdca62d1784f1fd3e21676b /helix-syntax
parent7bbf4c5b0675bb794bd88c070472773bd7d7e6bf (diff)
ui: Optimize tree-sitter style lookups
Tree sitter returns an index referring to the position of the scope in the scopes array. We can use that same index to avoid a hashmap lookup and instead store the styles in an array. This currently stores the styles in both a map and an array because the UI still uses hashmap lookups, but it's a reasonable tradeoff.
Diffstat (limited to 'helix-syntax')
0 files changed, 0 insertions, 0 deletions