Permalink
Please sign in to comment.
Browse files
Brainstorming about a rewrite of TildeSubPart.
We want to maintain the arena invariant: the spans "sum up" to the original file. - osh2oil: expose the fact the "synthetic" LiteralPart after the tilde has no span_id - Adjust spec tests for tilde. - Add comments.
- Loading branch information...
Showing
with
50 additions
and 17 deletions.
- +20 −7 core/word.py
- +1 −0 osh/lex.py
- +1 −0 osh/osh.asdl
- +1 −5 osh/word_parse.py
- +11 −3 spec/brace-expansion.test.sh
- +5 −0 test/arena.sh
- +9 −0 test/arena/tilde.sh
- +2 −2 tools/osh2oil.py
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| echo ~/src | ||
| echo ~andy/git | ||
| bin=~andy/bin | ||
| echo not~an~expansion~ | ||
| echo | ||
| echo ~{/src,root} | ||
| echo {foo~,~}/bar |
0 comments on commit
58f2496