On August 25, 2020 at 9:13 PM, "Rob McBroom" <mailinglist0@skurfer.com> wrote:

It doesn’t auto-indent after (, but that’s probably the language grammar.


I had a quick look, and yes, it's the grammar. Around line 367 this pattern, that I don't claim to understand the purpose of, gobbles up ()


{   begin = '(\()';
   
end = '(\))';
   
patterns = ( { include = '$self'; } );
},


before the pattern matching tuples around line 392 get a chance to process it

{   name = 'meta.structure.tuple.python';
   
match = '(\()(\s*(\)))';
   
captures = {
       
1 = { name = 'punctuation.definition.tuple.begin.python'; };
       
2 = { name = 'meta.empty-tuple.python'; };
       
3 = { name = 'punctuation.definition.tuple.end.python'; };
    };
},


so, effectively, tuples aren't recognized by the grammar. 


I deleted the first entry and got expansion of () working without any obvious destructive side-effects. YMMV.


Cheers,

Per