Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#### :bug: Bug fix

- Fix printing of tagged template literals. https://github.com/rescript-lang/rescript/pull/8018

#### :memo: Documentation

#### :nail_care: Polish
Expand Down
3 changes: 2 additions & 1 deletion compiler/syntax/src/res_parsetree_viewer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ let is_printable_attribute attr =
| ( {
Location.txt =
( "res.iflet" | "res.braces" | "ns.braces" | "JSX" | "res.await"
| "res.template" | "res.ternary" | "res.inlineRecordDefinition" );
| "res.template" | "res.taggedTemplate" | "res.ternary"
| "res.inlineRecordDefinition" );
},
_ ) ->
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ let box = css`
}
}
`)

sql
->SQL.query`INSERT INTO my_table (a, b, c) VALUES ${a}, ${b}, ${c}`
->Promise.thenResolve(Console.log)
4 changes: 4 additions & 0 deletions tests/syntax_tests/data/printer/expr/templateLiteral.res
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ let box = css`
}
}
`)

sql
->SQL.query`INSERT INTO my_table (a, b, c) VALUES ${a}, ${b}, ${c}`
->Promise.thenResolve(Console.log)