Sublime Forum

Prevent completions within comments

#1

Hello. For my Python completions I have the following:

if not view.match_selector(locations[0], ‘source.python -string -comment -constant’):
return ]

but the completions still appear within # comment lines, which have scope “source.python comment.line.number-sign.python”. What is the correct syntax for my selector statement please?

0 Likes

#2

No worries - seems to have just been a temporary anomaly :wink:

0 Likes