This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Try to reindent: <div> <div> {{if true}} var {{else}} foo {{endif}} </div> </div>
It seems that top lexer has to be rewritten. Open and close delimiters should be lexed in top layer.
Fixed in web-main #fd090bf708e3
Integrated into 'main-silver', will be available in build *201402110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fd090bf708e3 User: Ondrej Brejla <obrejla@netbeans.org> Log: #230506 - Reindenting of Twig files doesn't work properly for block tags (content)
Verified. Product Version: NetBeans IDE Dev (Build 201403060001) Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69 Runtime: Java(TM) SE Runtime Environment 1.8.0-b131 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)