ladybird/Userland
Sam Atkins 822164a686 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()
2023-03-05 16:54:10 +01:00
..
Applets Applets/Keymap: Repaint applet on demand only 2023-03-04 00:29:38 +01:00
Applications TextEditor: Enable CMake syntax highlighting 2023-03-04 05:43:43 -07:00
BuggieBox Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00
Demos Userland: Fix remaining smart pointer const-correctness issues 2023-02-21 00:54:04 +01:00
DevTools HackStudio: Enable CMake syntax highlighting 2023-03-04 05:43:43 -07:00
DynamicLoader DynamicLoader: Disable stack protector in some files for aarch64 build 2023-02-15 22:53:19 +01:00
Games Userland: Use Font::pixel_size_rounded_up() instead of glyph_height() 2023-03-04 00:29:38 +01:00
Libraries LibCMake: Add folding regions to syntax highlighter 2023-03-05 16:54:10 +01:00
Services Userland: Use Font::pixel_size_rounded_up() instead of glyph_height() 2023-03-04 00:29:38 +01:00
Shell LibCore+Everywhere: Remove ArgsParser::add*(char const*&) 2023-03-01 10:47:19 +01:00
Utilities Kernel+Userland: Add support for using the PCSpeaker with various tones 2023-03-05 08:38:29 +00:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00