diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-11-28 16:55:56 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-11-28 16:55:56 +0100 |
| commit | 016ba5838f17c619da09b497e28269594b7393d2 (patch) | |
| tree | 043269a6d85e0486e04be1e584ebe6822574e772 /src | |
| parent | 596f847946b99f1ef1789e0b1d743ea140ee570a (diff) | |
Make sure to newline the end of file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/printer.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/odin/printer/printer.odin b/src/odin/printer/printer.odin index e0776fc..8a7aba6 100644 --- a/src/odin/printer/printer.odin +++ b/src/odin/printer/printer.odin @@ -62,10 +62,10 @@ default_style := Config { spaces = 4, newline_limit = 2, convert_do = false, - tabs = false, + tabs = true, brace_style = ._1TBS, indent_cases = false, - newline_style = .CRLF, + newline_style = .LF, max_characters = 120, } @@ -136,6 +136,8 @@ print :: proc(p: ^Printer, file: ^ast.File) -> string { p.document = cons(p.document, document) } + p.document = cons(p.document, newline(1)) + list := make([dynamic]Tuple, p.allocator) append(&list, Tuple { |