Skip to content

Commit 4107c6f

Browse files
committed
getCurrentIndentation->getCurrentIndentationInOutput
1 parent 521e8fd commit 4107c6f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

preprocess.lua

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--= Website: http://luapreprocess.refreezed.com/
88
--= Documentation: http://luapreprocess.refreezed.com/docs/
99
--=
10-
--= Tested with Lua 5.1, 5.2, 5.3 and 5.4.
10+
--= Tested with Lua 5.1, 5.2, 5.3, 5.4 and LuaJIT.
1111
--=
1212
--==============================================================
1313
@@ -26,9 +26,8 @@
2626
- tokenize, newToken, concatTokens, removeUselessTokens, eachToken, isToken, getNextUsefulToken
2727
- toLua, serialize, evaluate
2828
Only during processing:
29-
- getCurrentIndentation
3029
- getCurrentPathIn, getCurrentPathOut
31-
- getOutputSoFar, getOutputSoFarOnLine, getOutputSizeSoFar, getCurrentLineNumberInOutput
30+
- getOutputSoFar, getOutputSoFarOnLine, getOutputSizeSoFar, getCurrentLineNumberInOutput, getCurrentIndentationInOutput
3231
- loadResource
3332
- outputValue, outputLua, outputLuaTemplate
3433
- startInterceptingOutput, stopInterceptingOutput
@@ -1795,14 +1794,14 @@ end
17951794
-- getIndentation()
17961795
-- string = getIndentation( line )
17971796
-- size = getIndentation( line, tabWidth )
1798-
-- Get indentation of a line, either as a string or as size in spaces.
1797+
-- Get indentation of a line, either as a string or as a size in spaces.
17991798
metaFuncs.getIndentation = _getIndentation
18001799

1801-
-- getCurrentIndentation()
1802-
-- string = getCurrentIndentation( )
1803-
-- size = getCurrentIndentation( tabWidth )
1804-
-- Get the indentation of the current line, either as a string or as size in spaces.
1805-
function metaFuncs.getCurrentIndentation(tabWidth)
1800+
-- getCurrentIndentationInOutput()
1801+
-- string = getCurrentIndentationInOutput( )
1802+
-- size = getCurrentIndentationInOutput( tabWidth )
1803+
-- Get the indentation of the current line, either as a string or as a size in spaces.
1804+
function metaFuncs.getCurrentIndentationInOutput(tabWidth)
18061805
return (_getIndentation(_getOutputSoFarOnLine(), tabWidth))
18071806
end
18081807

0 commit comments

Comments
 (0)