You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1972,7 +1985,7 @@ local function _processFileOrString(params, isFile)
1972
1985
linesOfCode=lineCountCode,
1973
1986
tokenCount=tokenCount,
1974
1987
hasPreprocessorCode=hasPreprocessorCode,
1975
-
insertedFiles=insertedPaths,
1988
+
insertedFiles=insertedNames,
1976
1989
}
1977
1990
1978
1991
ifparams.onDonethenparams.onDone(info) end
@@ -2080,8 +2093,9 @@ local lib = {
2080
2093
--
2081
2094
-- backtickStrings = boolean -- [Optional] Enable the backtick (`) to be used as string literal delimiters. Backtick strings don't interpret any escape sequences and can't contain backticks.
2082
2095
--
2083
-
--onAfterMeta = function( luaString ) -- [Optional] Here you can modify and return the Lua code before it's written to 'pathOut'.
2096
+
--onInsert= function( name ) -- [Optional] Called for each @insert statement. It's expected to return a Lua string. By default 'name' is a path to a file to be inserted.
2084
2097
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
2098
+
-- onAfterMeta = function( luaString ) -- [Optional] Here you can modify and return the Lua code before it's written to 'pathOut'.
2085
2099
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as what is returned from processFile().
2086
2100
--
2087
2101
processFile=processFile,
@@ -2101,6 +2115,7 @@ local lib = {
2101
2115
--
2102
2116
-- backtickStrings = boolean -- [Optional] Enable the backtick (`) to be used as string literal delimiters. Backtick strings don't interpret any escape sequences and can't contain backticks.
2103
2117
--
2118
+
-- onInsert = function( name ) -- [Optional] Called for each @insert statement. It's expected to return a Lua string. By default 'name' is a path to a file to be inserted.
2104
2119
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
2105
2120
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as the second returned value from processString().
0 commit comments