aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/highlighter.lua
diff options
context:
space:
mode:
authorJames <89495599+IAKOBVS@users.noreply.github.com>2024-03-13 03:34:59 +0700
committerGitHub <noreply@github.com>2024-03-13 04:34:59 +0800
commit119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a (patch)
tree34a997557975ebe999a29bd882cdeef8f2ddbdf9 /runtime/lua/vim/treesitter/highlighter.lua
parentdd0fc73bbed4fde9db093c8798601a25d290ad1f (diff)
downloadrneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.tar.gz
rneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.tar.bz2
rneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.zip
refactor: avoid copying before vim_strup() if possible (#27830)
Current uses of vim_strup() calls memcpy()/strcpy() before calling vim_strup(). This results in 2 * strlen(string) operations. We can trivially convert to lowercase while copying the string instead.
Diffstat (limited to 'runtime/lua/vim/treesitter/highlighter.lua')
0 files changed, 0 insertions, 0 deletions