Skip to content

Commit a8ae855

Browse files
committed
fixed pprint for strings
1 parent 9a318a2 commit a8ae855

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pprint.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { AST } from "./serialize";
22
import { llmap, llreverse, ll_to_array } from "./llhelpers";
3-
import { Loc, STX } from "./syntax-structures";
4-
import { go_up, reconvert, stx_list_content } from "./zipper";
3+
import { Loc } from "./syntax-structures";
54
import { list_tag } from "./AST";
65
import * as prettier from "prettier/standalone";
76
import * as prettier_ts from "prettier/plugins/typescript";
87
import * as prettier_estree from "prettier/plugins/estree";
9-
import node from "tree-sitter-typescript/bindings/node";
108

119
type ns = string | ns[];
1210

@@ -35,7 +33,7 @@ function loc_to_ns(loc: Loc): ns {
3533
case "shorthand_property_identifier":
3634
case "type_identifier":
3735
case "jsx_text":
38-
case "string_fragment":
36+
case "string":
3937
case "regex_pattern":
4038
case "other":
4139
return stx.content;

0 commit comments

Comments
 (0)