Fix brace states
The lexer needs its own lexerState, before it was using the syntax highlighter user state. This breaks the brace depth calculation of the highlighter. Reviewed-by: Roberto Raggi
Showing
- src/plugins/cpptools/cppcodeformatter.cpp 3 additions, 3 deletionssrc/plugins/cpptools/cppcodeformatter.cpp
- src/plugins/texteditor/basetextdocumentlayout.cpp 17 additions, 22 deletionssrc/plugins/texteditor/basetextdocumentlayout.cpp
- src/plugins/texteditor/basetextdocumentlayout.h 13 additions, 8 deletionssrc/plugins/texteditor/basetextdocumentlayout.h
- src/plugins/texteditor/basetexteditor.cpp 13 additions, 8 deletionssrc/plugins/texteditor/basetexteditor.cpp
- src/plugins/texteditor/tabsettings.h 1 addition, 0 deletionssrc/plugins/texteditor/tabsettings.h
Loading
Please register or sign in to comment