mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 22:27:39 +00:00
![]() This creates folding regions for blocks defined by the following: - if/elseif/else/endif - foreach/endforeach - while/endwhile - macro/endmacro - function/endfunction Since there is no guarantee that each keyword will have a matching partner, we do our best by looking for the most recent possible start token matching the current end token. If we find one, we link to it and drop all the other start-tokens that happened in between. For example, we would define a folding region for this invalid file like so: [-] if(TRUE) │ while() └─ endif() |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Lexer.cpp | ||
Lexer.h | ||
SyntaxHighlighter.cpp | ||
SyntaxHighlighter.h | ||
Token.cpp | ||
Token.h |