diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-06-04 11:38:57 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-05 00:32:28 +0430 |
commit | 44c438d0ca1e44ed11be5ed96eb409e1760467f7 (patch) | |
tree | dba68c403652fd385d85b9ad872cff8347a4c7af /Userland/Libraries/LibWeb/Scripts | |
parent | 932161e5817561028bdb5685182ad3f78db5e1b5 (diff) | |
download | serenity-44c438d0ca1e44ed11be5ed96eb409e1760467f7.zip |
LibWeb: Fix off-by-one error in SyntaxHighlighter
This changes the HTML SyntaxHighlighter to conform to the now-fixed
rendering of syntax highlighting spans in GUI::TextEditor. It also
avoids emitting tokens if they have a zero or negative length.
This fixes a bug where single-character tokens were not highlighted
properly.
Diffstat (limited to 'Userland/Libraries/LibWeb/Scripts')
0 files changed, 0 insertions, 0 deletions