aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/v
diff options
context:
space:
mode:
authorMichael Davis2023-07-25 19:20:33 +0000
committerBlaž Hrastnik2023-07-27 02:50:19 +0000
commit0dc3753eb2a1af296f5faffaf9c3d29bceb5a37f (patch)
treed3e1a3cff12864b4b51a142c5a88e1a4d0c7e927 /runtime/queries/v
parent6a431afc4e650efd2eca4afdf1122b3896e43ee3 (diff)
Syntax-highlight regex prompts
We can use tree-sitter-regex highlighting in prompts for entering regexes, like `search` or `global_search`. The `highlighted_code_block` function from the markdown component makes this a very small change. This could be improved in the future by leaving the parsed syntax tree on the prompt, allowing incremental updates. Prompt lines are usually so short though and tree-sitter-regex is rather small and uncomplicated, so that improvement probably wouldn't make a big difference.
Diffstat (limited to 'runtime/queries/v')
0 files changed, 0 insertions, 0 deletions