Merge pull request #17209 from bb010g/patch-1

fix(eval): v:lua support for `-` in module names
This commit is contained in:
bfredl
2022-01-29 11:45:15 +01:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -8956,7 +8956,7 @@ static bool tv_is_luafunc(typval_T *tv)
const char *skip_luafunc_name(const char *p)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
{
while (ASCII_ISALNUM(*p) || *p == '_' || *p == '.' || *p == '\'') {
while (ASCII_ISALNUM(*p) || *p == '_' || *p == '-' || *p == '.' || *p == '\'') {
p++;
}
return p;