Skip to content

Commit

Permalink
fixed pprint for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
azizghuloum committed Nov 25, 2024
1 parent 9a318a2 commit a8ae855
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pprint.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { AST } from "./serialize";
import { llmap, llreverse, ll_to_array } from "./llhelpers";
import { Loc, STX } from "./syntax-structures";
import { go_up, reconvert, stx_list_content } from "./zipper";
import { Loc } from "./syntax-structures";
import { list_tag } from "./AST";
import * as prettier from "prettier/standalone";
import * as prettier_ts from "prettier/plugins/typescript";
import * as prettier_estree from "prettier/plugins/estree";
import node from "tree-sitter-typescript/bindings/node";

type ns = string | ns[];

Expand Down Expand Up @@ -35,7 +33,7 @@ function loc_to_ns(loc: Loc): ns {
case "shorthand_property_identifier":
case "type_identifier":
case "jsx_text":
case "string_fragment":
case "string":
case "regex_pattern":
case "other":
return stx.content;
Expand Down

0 comments on commit a8ae855

Please sign in to comment.