amend comment on hilite equality

This commit is contained in:
natasha 2023-03-28 11:28:31 +01:00
parent cf057013ed
commit a862973f14

View File

@ -98,7 +98,7 @@ bool are_equal_with_hilites_removed(std::string_view left, std::string_view righ
/* /*
* Hilited queries cannot be compared symbol-by-symbol, as there's some frivolousness introduced with the hilites. Specifically: * Hilited queries cannot be compared symbol-by-symbol, as there's some frivolousness introduced with the hilites. Specifically:
* 1. Whitespaces could be hilited with any hilite type. * 1. Whitespaces could be hilited with any hilite type.
* 2. Hilite could or could be not reset with hilite_none before the next hilite, i.e. strings a and b are equal. * 2. Hilite could or could be not reset with hilite_none before the next hilite, i.e. the following strings a and b are equal:
* a. hilite_keyword foo hilite_none hilite_operator + * a. hilite_keyword foo hilite_none hilite_operator +
* b. hilite_keyword foo hilite_operator + * b. hilite_keyword foo hilite_operator +
*/ */