diff options
author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2024-07-19 12:01:27 +0300 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-08-03 14:14:42 +0200 |
commit | 95e0289cb24e349b0ac1b170adefc57b767d2e78 (patch) | |
tree | 446c1bee337477172e9b5027de561042ea042541 /scripts/gen_eval_files.lua | |
parent | 66a74535d40c6b68d38cb92088315fa67dc1304b (diff) | |
download | rneovim-95e0289cb24e349b0ac1b170adefc57b767d2e78.tar.gz rneovim-95e0289cb24e349b0ac1b170adefc57b767d2e78.tar.bz2 rneovim-95e0289cb24e349b0ac1b170adefc57b767d2e78.zip |
refactor(filetype): use extension match instead of pattern if possible
Problem: some patterns are used as a replacement for several explicit
extension matches (like '%.[Ss][Yy][Ss]$', '%.php%d$', etc.).
They usually correspond to Vim's "ignore case" regexes (like
'*.sys\c') and "convenience" patterns to not define many of them (like
'*.php\d').
As matching extension directly is faster and more explicit, it should
be preferred.
Solution: move all such patterns to direct extension match.
Diffstat (limited to 'scripts/gen_eval_files.lua')
0 files changed, 0 insertions, 0 deletions