mirror of https://github.com/status-im/NimYAML.git
fixed compiler warnings
This commit is contained in:
parent
c681498701
commit
d704a8c6d7
|
@ -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
|
||||
|
|
|
@ -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.}
|
||||
|
|
Loading…
Reference in New Issue