You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: