Bug: Plugin throws error when parsing object shorthand notation #147
Labels
framework: Vue
Related to the framework Vue
type: enhancement
Functionality that enhances existing features
Info
Input
//- template.vue span {{$t(expanded ? "panel_title_without_title" : "panel_title", {index: index + 1, title})}}
Output or Error
[PugPrinter:formatText]: SyntaxError: Missing expected : at i (/var/app/web/node_modules/prettier/parser-angular.js:46:16461) at e.parseNgInterpolation (/var/app/web/node_modules/prettier/parser-angular.js:46:17640) at s (/var/app/web/node_modules/prettier/parser-angular.js:46:28364) at Object.e.parseInterpolation (/var/app/web/node_modules/prettier/parser-angular.js:46:28664) at /var/app/web/node_modules/prettier/parser-angular.js:46:29282 at Object.parse (/var/app/web/node_modules/prettier/parser-angular.js:46:28970) at Object.parse (/var/app/web/node_modules/prettier/index.js:13575:19) at coreFormat (/var/app/web/node_modules/prettier/index.js:14851:25) at format (/var/app/web/node_modules/prettier/index.js:15073:14) at formatWithCursor (/var/app/web/node_modules/prettier/index.js:15090:12)
Expected Output
//- template.vue span {{$t(expanded ? "panel_title_without_title" : "panel_title", {index: index + 1, title})}}
Additional Context
The output seems to be fine (as may be it was kept as-is without any changes, not really sure)
The text was updated successfully, but these errors were encountered: