Inline comments not handled properly
Open
bug
parsing
- Dominant language
- Shell
- Stars
- 19
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
The example below:
```tr \\0 \\n <"in1" |
sed 's|^.*/||' |
# This is a comment
awk '{s += length($1); n++} END {
if (n>0)
print s / n;
else
print 0; }'
```
Gets parsed as:
```tr \\0 \\n <"in1" | sed 's|^.*/||' | # This is a comment awk '{s += length($1); n++} END { if (n>0) print s / n; else print 0; }'```
Similarly `echo foo # bar` will appear as is inside the Rikerfile.
We need to get rid of comments in these cases.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.