vim-cucumber
vim-cucumber copied to clipboard
Draft: Improving indent file to more indent scenarios if there is a rule line above
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.
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.
Ok great, I will look at your changes and test it.