spellcheck_highlight_syntax.h 580 B

12345678910111213141516171819
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #pragma once
  8. #include "ui/text/text_entity.h"
  9. namespace Spellchecker {
  10. using HighlightProcessId = uint64;
  11. // Returning zero means we highlighted everything already.
  12. [[nodiscard]] HighlightProcessId TryHighlightSyntax(TextWithEntities &text);
  13. [[nodiscard]] rpl::producer<HighlightProcessId> HighlightReady();
  14. } // namespace Spellchecker