File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/language-core/lib/plugins Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,12 @@ const plugin: VueLanguagePlugin = ctx => {
148
148
if ( leftExpressionRange && leftExpressionText && source . type === CompilerDOM . NodeTypes . SIMPLE_EXPRESSION ) {
149
149
let start = leftExpressionRange . start ;
150
150
let end = source . loc . start . offset + source . content . length ;
151
- while ( templateContent [ start - 1 ] === ' ' || templateContent [ start - 1 ] === '(' ) start -- ;
152
- while ( templateContent [ end ] === ' ' || templateContent [ end ] === ')' ) end ++ ;
151
+ while ( templateContent [ start - 1 ] === ' ' || templateContent [ start - 1 ] === '(' ) {
152
+ start -- ;
153
+ }
154
+ while ( templateContent [ end ] === ' ' || templateContent [ end ] === ')' ) {
155
+ end ++ ;
156
+ }
153
157
addFormatCodes (
154
158
templateContent . slice ( start , end ) ,
155
159
start ,
You can’t perform that action at this time.
0 commit comments