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.
I couldn't figure out why my notes in python weren't showing up. Looking into
lib/messageChecks.jsreveals 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*(.*)/ibut it screws up the message reporting.