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
@@ -1942,6 +1950,7 @@ local function _processFileOrString(params, isFile)
1942
1950
1943
1951
metaPathForErrorMessages=""
1944
1952
outputFromMeta=nil
1953
+
canOutputNil=true
1945
1954
1946
1955
ifparams.onAfterMetathen
1947
1956
localluaModified=params.onAfterMeta(lua)
@@ -2042,6 +2051,7 @@ local function processFileOrString(params, isFile)
2042
2051
currentPathOut=""
2043
2052
metaPathForErrorMessages=""
2044
2053
outputFromMeta=nil
2054
+
canOutputNil=true
2045
2055
2046
2056
-- Unhandled error.
2047
2057
ifnot (returnValuesorerrorToReturn) then
@@ -2091,7 +2101,8 @@ local lib = {
2091
2101
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
2092
2102
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
2093
2103
--
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.
2104
+
-- 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. (Default: false)
2105
+
-- canOutputNil = boolean -- [Optional] Allow !() and outputValue() to output nil. (Default: true)
2095
2106
--
2096
2107
-- 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.
2097
2108
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
@@ -2113,7 +2124,8 @@ local lib = {
2113
2124
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
2114
2125
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
2115
2126
--
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.
2127
+
-- 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. (Default: false)
2128
+
-- canOutputNil = boolean -- [Optional] Allow !() and outputValue() to output nil. (Default: true)
2117
2129
--
2118
2130
-- 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.
2119
2131
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
0 commit comments