File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1024,8 +1024,9 @@ private:
10241024 while (indents.length && isWrapIndent(indents.top))
10251025 indents.pop();
10261026 indents.push(tok! " {" );
1027- if (index == 1 || peekBackIs(tok! " :" ) || peekBackIs(tok! " {" )
1028- || peekBackIs(tok! " }" ) || peekBackIs(tok! " )" ) || peekBackIs(tok! " ;" ))
1027+ if (index == 1 || peekBackIs(tok! " :" , true ) || peekBackIs(tok! " {" , true )
1028+ || peekBackIs(tok! " }" , true ) || peekBackIs(tok! " )" , true )
1029+ || peekBackIs(tok! " ;" , true ))
10291030 {
10301031 indentLevel = indents.indentSize - 1 ;
10311032 }
Original file line number Diff line number Diff line change 1+ unittest
2+ {
3+ if (! fdmatch)
4+ goto Lfd; // comment
5+ {
6+ }
7+ }
Original file line number Diff line number Diff line change 1+ unittest
2+ {
3+ if (!fdmatch)
4+ goto Lfd; // comment
5+ {
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments