watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

inline comment not matched by regex

Open marscher opened this issue 11 years ago • 1 comments
trafficstars

having code like this in python:

def foobar(a,b,c): # [todo] - i'am not matched :(

does not get matched by version 1.6.3 But this is IMHO a pretty common use case.

marscher avatar Jun 05 '14 17:06 marscher

this is the generated regex: (?-mix:^(?:\s_[#]+\s_)+(\w+):\s+(.+))

marscher avatar Jun 10 '14 14:06 marscher