Update importcode.src

This commit is contained in:
Clover Foxx 2025-02-13 12:52:05 -08:00 committed by GitHub
parent 1098990620
commit 151753bb4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,9 @@ handleFileImports = function(pathSrc)
if text.len < 1 then continue
//-- handle relative imports
if text[0] == "." then text = parent_path(pathSrc)+text[1:]
if text[:2] == "./" then text = parent_path(pathSrc)+text[2:]
//-- handle non-dot relative imports
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text[1:]
//-- handle nested imports
if text[-4:]==".src" then
result = handleFileImports(text)