bashlex icon indicating copy to clipboard operation
bashlex copied to clipboard

Fix elif clause by extending parts to include previous elif parts

Open sereysethy opened this issue 5 years ago • 1 comments

Last elif clause node is created and added to parts as a list. When parsing the next elif (bottom-up order), as the last part is a list, then it wrongly created a ReservedWord node and add the previous list as word. The solution is to extend parts to include previous parts.

sereysethy avatar Aug 21 '19 08:08 sereysethy

Hey, thanks for separating this. Can you please add a test? You had an example in the original pull request, something simple along those lines can work. Thanks!

idank avatar Aug 24 '19 19:08 idank