markdown2 :: MdParser :: set_new_index
index
at new_index
Also set column
and column_is_in_tab
.
# Set the parser `index` at `new_index`
#
# Also set `column` and `column_is_in_tab`.
private fun set_new_index(new_index: Int) do
if new_index >= next_non_space_index then
# We can start from here, no need to calculate tab stops again
index = next_non_space_index
column = next_non_space_column
end
while index < new_index and index != line_string.length do
advance
end
# If we're going to an index as opposed to a column, we're never within a tab
column_is_in_tab = false
end
lib/markdown2/markdown_block_parsing.nit:393,2--407,4