Nuten

Ignoring code

A comment turns formatting off for a piece of code. Use it to keep things like a hand-aligned table as they are.

To leave whole files alone, use exclude in the configuration.

# nuten-ignore

On its own line, the comment keeps the statement or element that follows as it is.

Compare

# nuten-ignore
let sizes = [[name,     bytes];
             [small,       10]
             [medium,    1000]
             [large,   100000]]

let names = [[id, name];
             [1, a]
             [2, b]]
# nuten-ignore
let sizes = [[name,     bytes];
             [small,       10]
             [medium,    1000]
             [large,   100000]]

let names = [[id, name];
    [1, a]
    [2, b]
]

At the end of a line, it keeps the statement or element on that line as it is.

Compare

let cross = [1 0 1  0 1 0  1 0 1] # nuten-ignore
let plus = [0 1 0  1 1 1  0 1 0]
let cross = [1 0 1  0 1 0  1 0 1] # nuten-ignore
let plus = [0, 1, 0, 1, 1, 1, 0, 1, 0]

Last updated: