|
7 | 7 | --= Website: http://luapreprocess.refreezed.com/ |
8 | 8 | --= Documentation: http://luapreprocess.refreezed.com/docs/ |
9 | 9 | --= |
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. |
11 | 11 | --= |
12 | 12 | --============================================================== |
13 | 13 |
|
|
26 | 26 | - tokenize, newToken, concatTokens, removeUselessTokens, eachToken, isToken, getNextUsefulToken |
27 | 27 | - toLua, serialize, evaluate |
28 | 28 | Only during processing: |
29 | | - - getCurrentIndentation |
30 | 29 | - getCurrentPathIn, getCurrentPathOut |
31 | | - - getOutputSoFar, getOutputSoFarOnLine, getOutputSizeSoFar, getCurrentLineNumberInOutput |
| 30 | + - getOutputSoFar, getOutputSoFarOnLine, getOutputSizeSoFar, getCurrentLineNumberInOutput, getCurrentIndentationInOutput |
32 | 31 | - loadResource |
33 | 32 | - outputValue, outputLua, outputLuaTemplate |
34 | 33 | - startInterceptingOutput, stopInterceptingOutput |
@@ -1795,14 +1794,14 @@ end |
1795 | 1794 | -- getIndentation() |
1796 | 1795 | -- string = getIndentation( line ) |
1797 | 1796 | -- 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. |
1799 | 1798 | metaFuncs.getIndentation = _getIndentation |
1800 | 1799 |
|
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) |
1806 | 1805 | return (_getIndentation(_getOutputSoFarOnLine(), tabWidth)) |
1807 | 1806 | end |
1808 | 1807 |
|
|
0 commit comments