Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 143f1d8

Browse files
author
Juanjo Alvarez
committed
Use CommentTextTrimmed
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 58b2fc6 commit 143f1d8

File tree

6 files changed

+217
-217
lines changed

6 files changed

+217
-217
lines changed

driver/normalizer/normalizer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var Normalizers = []Mapping{
146146

147147
MapSemantic("NoopLine", uast.Comment{}, MapObj(
148148
Obj{
149-
"noop_line": CommentText([2]string{"#", ""}, "comm"),
149+
"noop_line": CommentTextTrimmed([2]string{"#", ""}, "comm"),
150150
},
151151
CommentNode(false, "comm", nil),
152152
)),

fixtures/bench_gcd.py.sem.uast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
},
637637
},
638638
Block: false,
639-
Prefix: " # ",
639+
Prefix: " ",
640640
Suffix: "\n",
641641
Tab: "",
642642
Text: "u >= v > 0",

0 commit comments

Comments
 (0)