Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule parsing in case of mixed ('\t' and ' ') indentation #185

Open
sharkovadarya opened this issue Aug 13, 2019 · 0 comments
Open

Rule parsing in case of mixed ('\t' and ' ') indentation #185

sharkovadarya opened this issue Aug 13, 2019 · 0 comments
Labels
parsing Parser Errors
Milestone

Comments

@sharkovadarya
Copy link
Contributor

rule foo:
    output: "file.txt"
    input: "input.txt"
    shell: "echo hello"

rule boo:
   input: ...

If the entire file is indented with tabs but a rule section, e.g. output, is indented with spaces, rule parsing fails up until the next rule (so, in this case, rule foo wouldn't be parsed correctly starting with input section, rule boo would be parsed correctly).

Python plugin reports an 'unexpected indent' error in such cases and suggests converting indentation, we could probably try to do the same.

@sharkovadarya sharkovadarya added the parsing Parser Errors label Aug 13, 2019
@iromeo iromeo changed the title Rule parsing in case of mixed indentation Rule parsing in case of mixed ('\t' and ' ') indentation Aug 13, 2019
@iromeo iromeo added this to the Backlog milestone Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parsing Parser Errors
Projects
None yet
Development

No branches or pull requests

2 participants