From a03d8ed4c20b3ee2ae40b1c547cfbdb8738c27b5 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Fri, 4 Oct 2019 21:43:47 +0100 Subject: Expose some layouter elements, improve readme (#12361) Useful for writing linters and static code analysis --- compiler/layouter.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/layouter.nim') diff --git a/compiler/layouter.nim b/compiler/layouter.nim index 7c1c9d16c..a8e31ae69 100644 --- a/compiler/layouter.nim +++ b/compiler/layouter.nim @@ -21,7 +21,7 @@ type SemicolonKind = enum detectSemicolonKind, useSemicolon, dontTouch - LayoutToken = enum + LayoutToken* = enum ltSpaces, ltCrucialNewline, ## a semantically crucial newline (indentation!) ltSplittingNewline, ## newline used for splitting up long @@ -41,8 +41,8 @@ type col, lastLineNumber, lineSpan, indentLevel, indWidth*, inSection: int keepIndents*: int doIndentMore*: int - kinds: seq[LayoutToken] - tokens: seq[string] + kinds*: seq[LayoutToken] + tokens*: seq[string] indentStack: seq[int] fixedUntil: int # marks where we must not go in the content altSplitPos: array[SplitKind, int] # alternative split positions -- cgit 1.4.1-2-gfad0