Skip to content

// Required for regex match #8

@evanberkowitz

Description

@evanberkowitz

I couldn't figure out why my notes in python weren't showing up. Looking into lib/messageChecks.js reveals that two slashes are required for a match. But some languages' comments aren't indicated with two slashes---python uses #, for example.

The workaround seems to do, eg. # // TODO: message... but that's very unnatural and easy to forget to do. It would be great if there was a more general way to detect comments (without requiring a lexer for every language, obviously). I tried changing the patterns to (for example) /([\/\/][\/\*]|#)\s*BUG:\s*(?:\(([^:]*)\))*\s*:?\s*(.*)/i but it screws up the message reporting.

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