Match backslash as separator in references for moonscript (#273)

This commit is contained in:
Kyra Zimmer 2020-09-30 19:11:28 +02:00 committed by GitHub
parent 6399f6a501
commit 9fa1150194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1102,7 +1102,7 @@ function Module:process_see_reference (s,modules,istype)
local mod_ref,fun_ref,name,packmod
local ref = custom_see_references(s)
if ref then return ref end
if not s:match '^[%w_%.%:%-]+$' or not s:match '[%w_]$' then
if not s:match '^[%w_%.\\%:%-]+$' or not s:match '[%w_]$' then
return nil, "malformed see reference: '"..s..'"'
end