vim-cucumber icon indicating copy to clipboard operation
vim-cucumber copied to clipboard

Draft: Improving indent file to more indent scenarios if there is a rule line above

Open nbossard opened this issue 2 years ago • 3 comments

nbossard avatar Mar 20 '23 22:03 nbossard

This MR is to indent rules lines but not only... according to https://cucumber.io/docs/gherkin/reference/ when there is a rule line, "scenario" lines below should be indented more. This is the what is introduced here.

nbossard avatar Mar 20 '23 22:03 nbossard

This approach will only work for English, and I worry that extending it to use syntax matching for other languages won't work correctly when the Rule: heading is far offscreen and thus not highlighted.

I've made my own attempt in the indent-rules branch. It turned into a pretty substantial refactor, so it needs vetting and testing before I merge.

tpope avatar Mar 25 '23 09:03 tpope

Ok great, I will look at your changes and test it.

nbossard avatar Mar 26 '23 12:03 nbossard