Skip to content

Commit

Permalink
test: fix and add more newline cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlebron committed Mar 11, 2016
1 parent ca9a82a commit 3144315
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions lib/test/cases/newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,53 @@ Copy following line indentation if previous line is not sibling:
```out
(foo [a b
|]
bar)
bar)
```

> 3. pressing enter and moving the cursor to another line should not alter the AST
```in
(foo [a b
]
bar)
bar)
```

```out
(foo [a b]
bar)
bar)
```

## Combining Implications

Sibling alignment:

```in
(foo [a b
|] bar
baz)
```

```out
(foo [a b
|]
bar
baz)
```

Implied `cursorDx` value can preserve relative indentation:

```in
(foo [a b
|] (bar
123)
baz)
```

```out
(foo [a b
|]
(bar
123)
baz)
```

0 comments on commit 3144315

Please sign in to comment.