aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_cpp.lua
diff options
context:
space:
mode:
authorJefferson González <jgmdev@gmail.com>2024-07-07 16:09:42 -0400
committerGitHub <noreply@github.com>2024-07-07 16:09:42 -0400
commit906faf1de9d9d04e7d183480d26dc70b49a41f07 (patch)
treef989c2d1bec663dadba050159bdc96160fd7221d /data/plugins/language_cpp.lua
parentc5d100ffc7d31ba020c24b45bff6701192af9d9e (diff)
downloadpragtical-906faf1de9d9d04e7d183480d26dc70b49a41f07.tar.gz
pragtical-906faf1de9d9d04e7d183480d26dc70b49a41f07.zip
Port rest of regex functions from Lua to C (#120)
Ports find, find_offsets and match from Lua directly into C for better performance on components that use them like detectindent, tokenizer, etc... This change also converts the regex from a table to a userdata pointer and properly associates the related methods using a metatable named on `API_TYPE_REGEX`. Also fixes garbage collection of the compiled regex in LuaJIT which doesn't calls the __gc on tables.
Diffstat (limited to 'data/plugins/language_cpp.lua')
0 files changed, 0 insertions, 0 deletions