Skip to content

Commit f304b30

Browse files
author
Yannick Scherer
committed
update README.md.
1 parent 434ae4d commit f304b30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ __Leiningen ([via Clojars](http://clojars.org/rewrite-clj))__
2020
[rewrite-clj "0.3.8"]
2121
```
2222

23-
__Parsing Data__
23+
### Parsing Data
2424

2525
The parser relies on [clojure.tools.reader](https://github.com/clojure/tools.reader) when handling simple
2626
tokens. It generates a structure of nested vectors whose first elements represent the kind of data
@@ -32,12 +32,12 @@ contained (`:token`, `:whitespace`, `:comment`, `:list`, ...).
3232
;; =>
3333
;; [:list
3434
;; [:token defn] [:whitespace " "] [:token my-function] [:whitespace " "]
35-
;; [:vector [:token a]] [:whitespace "\n "]
35+
;; [:vector [:token a]] [:newline "\n"] [:whitespace " "]
3636
;; [:list
3737
;; [:token *] [:whitespace " "] [:token a] [:whitespace " "] [:token 3]]]
3838
```
3939

40-
__Printing Data__
40+
### Printing Data
4141

4242
The printer incorporates whitespaces and comments in its output.
4343

@@ -49,7 +49,7 @@ The printer incorporates whitespaces and comments in its output.
4949
;; => nil
5050
```
5151

52-
__EDN Zipper__
52+
### Clojure Zipper
5353

5454
To traverse/modify the generated structure you can use rewrite-clj's whitespace-/comment-/value-aware zipper
5555
operations, based on [fast-zip](https://github.com/akhudek/fast-zip).

0 commit comments

Comments
 (0)