Skip to content

labels with percent sign are not formatted correctly #6

@travisdowns

Description

@travisdowns

The default for nasm-mode seems to be to format labels fully left-aligned (starting in the first column), like so:

foo:
    xor eax, eax

So far, so good. If a label contains a % character, however, the indentation changes - the labels are now aligned one tab in, same as assembly instructions, like so:

    foo%1:
    xor eax, eax

Probably this happens because nasm-mode doesn't detect it as a valid label - but such labels are common, for example, in macro definitions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions