nimpretty: add #!nimpretty on/off directives

This commit is contained in:
Andreas Rumpf 2018-10-16 16:54:52 +02:00
commit f3c0703b7d
5 changed files with 43 additions and 9 deletions

View file

@ -324,9 +324,17 @@ proc f() =
# escape char
str &= c
const test = r"C:\Users\-\Desktop\test.txt"
proc getKeyAndData(cursor: int; op: int):
tuple[key, data: string; success: bool] {.noInit.} =
var keyVal: string
var dataVal: string
#!nimpretty off
when stuff:
echo "so nice"
echo "more"
else:
echo "misaligned"
#!nimpretty on
const test = r"C:\Users\-\Desktop\test.txt"