nimpretty: add #!nimpretty on/off directives
This commit is contained in:
parent
ed38079b9b
commit
f3c0703b7d
5 changed files with 43 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue