Permalink
Please sign in to comment.
Browse files
Fix translation of here docs with <<-
The HereDocLineReader has to return the start_offset separately. And then the LineLexer can be started at the offset, skipping leading tabs. Added 'here-doc' to the list of passing osh2oil tests!
- Loading branch information...
Showing
with
24 additions
and 16 deletions.
- +5 −5 core/lexer.py
- +8 −4 core/reader.py
- +4 −3 osh/cmd_parse.py
- +4 −1 test/arena.sh
- +2 −3 test/arena/here-dq-indented.sh
- +1 −0 test/osh2oil.sh
| @@ -1,7 +1,6 @@ | ||
| #!/bin/bash | ||
| cat <<-ONE | ||
| cat <<-EOF | ||
| indented | ||
| body | ||
| ONE | ||
| OSH | ||
| EOF |
0 comments on commit
4fbbc61