summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-04 17:16:24 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-05 16:54:10 +0100
commit822164a6864d4e43b09607bc787dac1622ebe6fd (patch)
treee3c267c3caf99c8b6af3170d63429bade0092f0d /Kernel/API
parent631927470a2a90cc332720eccb47867e6037f88a (diff)
downloadserenity-822164a6864d4e43b09607bc787dac1622ebe6fd.zip
LibCMake: Add folding regions to syntax highlighter
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()
Diffstat (limited to 'Kernel/API')
0 files changed, 0 insertions, 0 deletions