We should have better struct for case like this https://github.com/prettier/prettier/blob/811eb0a08505c2a1aad4ef9dfae6db8065063dd5/src/language-js/print/angular.js#L91 And this https://github.com/prettier/prettier/blob/811eb0a08505c2a1aad4ef9dfae6db8065063dd5/src/language-js/print/angular.js#L65