Skip to content

ca65 highlighting is broken for unary opcodes, unless you add extraneous whitespace #6

@maxbane

Description

@maxbane

I think the \\b at the end of the opcode regexes in ca65.tmLanguage.json means that unary opcodes are only recognized and highlighted correctly if they are followed by extraneous whitespace. For some reason a newline alone doesn't trigger the \b word boundary?

For example, see this screenshot with the scope inspector active:
https://i.imgur.com/GvrwOW9.png

Alt

Notice how unary opcodes like clc, dey, and rts are being classified as entity.other.attribute-name instead of the intended support.type, and are therefore being colored differently.

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