Commit 757f7de 1 parent 51f1014 commit 757f7de Copy full SHA for 757f7de
File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## unreleased
4
4
5
+ ### Bugfix
6
+ - [ GH-110 ] ( https://github.com/zackad/prettier-plugin-twig/issues/90 ) Fix regression when parsing concatenation expression inside html attribute value
7
+
5
8
### Internals
6
9
- DX: Don't use alias to export print function to make it easier to identify when debugging call stack
7
10
Original file line number Diff line number Diff line change @@ -578,6 +578,9 @@ export default class Lexer {
578
578
if ( c === "\\" && input . la ( 1 ) === start ) {
579
579
input . next ( ) ;
580
580
input . next ( ) ;
581
+ } else if ( c === "{" && input . la ( 1 ) === "{" ) {
582
+ // interpolation start
583
+ break ;
581
584
} else if ( c === start ) {
582
585
break ;
583
586
} else {
Original file line number Diff line number Diff line change
1
+ {# https://github.com/zackad/prettier-plugin-twig/issues/110 #}
2
+ <section class =" sm:p-0 p-0 text-{{ i }}" ></section >
3
+
1
4
<a href =" #abcd" target =" _blank" lang =" en" >Link</a >
2
5
3
6
<fantasy
Original file line number Diff line number Diff line change
1
+ {# https://github.com/zackad/prettier-plugin-twig/issues/110 #}
2
+ <section class =" sm:p-0 p-0 text-{{ i }}" ></section >
3
+
1
4
<a href =" #abcd" target =" _blank" lang =" en" >Link</a >
2
5
3
6
<fantasy {{ {
You can’t perform that action at this time.
0 commit comments