cucumber / language-service

Cucumber Language Service
MIT License
12 stars 21 forks source link

Index failure with partial Python parameter match #196

Closed kieran-ryan closed 1 month ago

kieran-ryan commented 1 month ago

🤔 What's changed?

⚡️ What's your motivation?

The Parameter Type tree-sitter query for Python allowed three optional keyword arguments, 1 for the name argument and 2 for the regular expressions argument in two different formats (string and concatenated-string).

This works fine with valid parameter type definitions using the keyword arguments in the order in which they are declared. However, the query fails in the following scenarios:

🏷️ What kind of change is this?

♻️ Anything particular you want feedback on?

📋 Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.