Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/ulight/impl/lang/xml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ html::Match_Result match_comment(std::u8string_view str);
[[nodiscard]]
std::size_t match_text(std::u8string_view str);

/// @brief matches an entity reference at the beginning of str.
[[nodiscard]]
std::size_t match_entity_reference(std::u8string_view str);

} // namespace ulight::xml
#endif
3 changes: 2 additions & 1 deletion include/ulight/impl/lang/xml_chars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ constexpr bool is_xml_name_start(char32_t c) noexcept
|| (c >= U'\u2c00' && c <= U'\u2fef') //
|| (c >= U'\u3001' && c <= U'\ud7ff') //
|| (c >= U'\uf900' && c <= U'\ufdcf') //
|| (c >= U'\ufdf0' && c <= U'\ufffd');
|| (c >= U'\ufdf0' && c <= U'\ufffd') //
|| (c >= U'\U00010000' && c <= U'\U000effef');
}

constexpr bool is_xml_name(char8_t c) = delete;
Expand Down
Loading