update corehelpers to use new istream function names

This commit is contained in:
Starfflame 2021-05-19 01:29:35 -05:00
parent ca93ea00d4
commit 253ab538ca
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@ function CoreHelpers.isWhitespace(chr: string): boolean
chr == "\f")
end
function CoreHelpers.skipWhitespace(state: Environment)
local chr = state.activeInputStream:peek()
local chr = state.activeInputStream:curr()
while (CoreHelpers.isWhitespace(chr)) do
chr = state.activeInputStream:advance()
chr = state.activeInputStream:next()
end
end