Skip to content

Highlight invalid % format specifiers #42

@arp242

Description

@arp242

It might be helpful to highlight invalid format specifiers:

fmt.Printf("it's %.1f%", percentage)

I can't really get the regexp for that one right at the moment, and there's also the issue of wrong matches in:

fmt.Println("100%!")

Which isn't great; not sure what a good solution for that might be. Limiting to *f() calls might work 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions