diff --git a/lualib/nelua/utils/pegger.lua b/lualib/nelua/utils/pegger.lua index 918f92c6..fb02e373 100644 --- a/lualib/nelua/utils/pegger.lua +++ b/lualib/nelua/utils/pegger.lua @@ -128,9 +128,10 @@ function pegger.split_execargs(s) end local filename_to_unitname_patt = re.compile[[ - p <- {~ filebeg? c* ~} + p <- {~ filebeg? numprefix? c* ~} c <- extend -> '' / [_%w] / (%s+ / [_/\.-]) -> '_' / . -> 'X' filebeg <- [./\]+ -> '' + numprefix <- '' -> 'n' [0-9]+ extend <- '.' [_%w]+ !. ]]