Files
serenity/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
Sam Atkins 73b2383313 LibWeb/HTML: Use unique offsets for nested highlighters' tokens
The code previously ensured that JS/CSS tokens did not share values with
the HTML tokens, but still let them share values with each other. The
numbers chosen (1000 and 2000) are somewhat arbitrary, but give us
plenty of room to avoid overlaps.

(cherry picked from commit 07f0d9209a49fa349ce3763dd7ab8835b78edf85)
2024-11-16 14:05:12 -05:00

8.8 KiB