ladybird/Userland/Libraries
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
..
LibArchive Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibAudio AK+LibAudio: Remove UFixedBigInt::my_size 2023-03-05 13:49:43 +01:00
LibC Kernel+Userland: Add support for using the PCSpeaker with various tones 2023-03-05 08:38:29 +00:00
LibCards Userland: Use Font::pixel_size_rounded_up() instead of glyph_height() 2023-03-04 00:29:38 +01:00
LibChess LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibCMake LibCMake: Add folding regions to syntax highlighter 2023-03-05 16:54:10 +01:00
LibCodeComprehension Everywhere: Use '_{short_,}string' literals more 2023-02-28 15:15:36 +00:00
LibCompress Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibConfig LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibCore Kernel+Userland: Add support for using the PCSpeaker with various tones 2023-03-05 08:38:29 +00:00
LibCoredump LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibCpp LibCpp: Add folding regions to syntax highlighters 2023-03-03 21:56:42 +01:00
LibCrypt AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
LibCrypto AK+LibCrypto: Delete 64x64 wide multiplication workarounds 2023-03-04 22:10:03 -07:00
LibDebug HackStudio: Add 'pause debuggee' button 2023-02-24 19:09:27 +01:00
LibDesktop LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibDeviceTree LibDeviceTree: Use unchecked_append() in path parsing 2023-02-24 23:56:37 +01:00
LibDiff LibDiff: Make Diff::generate_only_additions take text as StringView 2022-12-20 10:58:54 +01:00
LibDNS Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibDSP LibDSP: Don't crash on out-of-bounds parameter value 2023-02-25 20:49:41 -07:00
LibEDID LibEDID: Return proper errno codes for kernel code 2023-02-10 09:14:20 +00:00
LibELF Kernel+Userland: Refine preventing syscall annotations of Regions option 2023-02-24 22:26:07 +01:00
LibFileSystemAccessClient LibFileSystemAccessClient: Remove the deprecated API 2023-02-16 20:11:52 +01:00
LibGemini Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibGfx LibGfx: Don't reject SOF2 JPEGs that don't use spectral approximation 2023-03-04 23:39:41 +00:00
LibGL LibGL: Fix minor const-correctness issues 2023-02-21 00:54:04 +01:00
LibGLSL Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
LibGPU LibGPU: Remove DeprecatedString usage 2023-01-30 13:49:52 -05:00
LibGUI LibGUI: Make Button height adapt to the current font size 2023-03-04 00:29:38 +01:00
LibHTTP Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibIDL LibIDL: Use OrderedHash{Table,Map} to store Enumeration values 2023-03-03 09:25:34 +00:00
LibImageDecoderClient LibImageDecoderClient: Fix minor const-correctness issue 2023-02-21 00:54:04 +01:00
LibIMAP LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibIPC LibIPC: Add a built-in encoder/decoder for AK::Time 2023-02-24 15:50:42 -05:00
LibJS LibJS: Use a Variant instead of two Optionals for ThrowCompletionOr 2023-03-01 17:55:42 +00:00
LibKeyboard LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibLine Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibLocale Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
LibMain Everywhere: Explicitly link all binaries against the LibC target 2022-11-01 14:49:09 +00:00
LibManual Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
LibMarkdown AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
LibPartition LibPartition: Make Kernel parts const-correct re: StorageDevice& 2023-02-21 00:54:04 +01:00
LibPCIDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibPDF LibPDF: Detect CFF encodings with supplements 2023-03-02 12:18:53 +01:00
LibProtocol Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibRegex LibRegex: Add to_string method for RegexStringView 2023-02-17 16:32:02 +00:00
LibSanitizer LibC: Properly implement stack protectors 2022-11-01 14:49:09 +00:00
LibSoftGPU LibSoftGPU: Use multiplication instead of division for linear fog 2023-02-18 01:45:00 +01:00
LibSQL LibSQL: Fix minor const-correctness issues 2023-02-21 00:54:04 +01:00
LibSymbolication Kernel+Userland: Add constants subdirectory at /sys/kernel directory 2023-02-19 13:47:11 +01:00
LibSyntax LibCMake+LibSyntax: Add a CMake syntax highlighter 2023-03-04 05:43:43 -07:00
LibSystem
LibTest LibCore+Everywhere: Remove ArgsParser::add*(char const*&) 2023-03-01 10:47:19 +01:00
LibTextCodec LibTextCodec/Latin1: Iterate over input string with u8 instead of char 2023-02-28 08:46:06 +00:00
LibThreading Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibTimeZone Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
LibTLS LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibUnicode LibUnicode: Allow ignoring text presentation emoji in sequence detection 2023-02-28 13:22:58 +00:00
LibUSBDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibVideo LibVideo/VP9: Convert the Parser to use AK/BitStream.h 2023-02-13 00:22:23 +00:00
LibVirtGPU LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibVT Kernel+Userland: Add support for using the PCSpeaker with various tones 2023-03-05 08:38:29 +00:00
LibWasm LibWasm+LibWeb: Sneak a JS::Completion into Wasm::Result 2023-02-26 10:54:23 +03:30
LibWeb LibWeb: Add Solaris/SunOS platform string to ResourceLoader 2023-03-04 21:34:54 -07:00
LibWebSocket LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibWebView LibWebView: Display Accessible Name and Description 2023-02-19 15:58:20 +01:00
LibX86 LibX86: Remove i686 support 2022-12-28 11:53:41 +01:00
LibXML AK: Check the return type in IsCallableWithArguments 2023-02-04 18:47:02 -07:00
CMakeLists.txt LibCMake: Introduce a CMake lexer 2023-03-04 05:43:43 -07:00