diff --git a/yaml/presenter.nim b/yaml/presenter.nim index 12e6f76..dcd1e5e 100644 --- a/yaml/presenter.nim +++ b/yaml/presenter.nim @@ -11,7 +11,7 @@ ## This is the presenter API, used for generating YAML character streams. import streams, deques, strutils -import data, taglib, stream, private/internal, hints, parser, stream +import data, taglib, stream, private/internal, hints, parser type PresentationStyle* = enum diff --git a/yaml/private/lex.nim b/yaml/private/lex.nim index 4343ef2..2261224 100644 --- a/yaml/private/lex.nim +++ b/yaml/private/lex.nim @@ -133,13 +133,6 @@ proc isPlainSafe(lex: Lexer): bool {.inline.} = of flowIndicators: result = lex.flowDepth == 0 else: result = true -proc lineWithMarker(lex: Lexer, pos: tuple[line, column: int], - marker: bool): string = - if pos.line == lex.source.lineNumber: - result = lex.source.getCurrentLine(false) - if marker: result.add(spaces(pos.column - 1) & "^\n") - else: result = "" - # lexer states {.push gcSafe, locks: 0.}