Compact typed policy values for viewer descriptions and commands.
Definition document_highlight_types.hpp:45
constexpr auto EXACT
Explicit full recovery.
Definition document_highlight_types.hpp:48
constexpr auto AUTO
Bounded automatic refinement.
Definition document_highlight_types.hpp:46
constexpr auto PREVIEW
Local work only.
Definition document_highlight_types.hpp:47
Public Portals API.
Definition action.hpp:8
@ PENDING
Complete or abandon the owning session before submitting another frame.
Definition diff.hpp:108
DocumentSyntaxPolicy
Recovery policy; the language still selects the lexical rules.
Definition document_highlight_types.hpp:31
@ PREVIEW
Reuse known exact context or show bounded local-fragment colors without long recovery.
Definition document_highlight_types.hpp:33
@ EXACT
Allow cancellable recovery from a proven checkpoint or the real source origin.
Definition document_highlight_types.hpp:34
@ AUTO
Preview immediately and refine within the automatic source-admission budget.
Definition document_highlight_types.hpp:32
@ READY
Successful nonempty content; the reserved status strip is blank.
Definition data_presentation.hpp:12
@ OUTPUT_FULL
More output capacity is needed to continue.
Definition document_encoding.hpp:35
@ WORK_LIMIT
The input admission budget was reached.
Definition document_encoding.hpp:36
@ DONE
Confirmed end of stream was processed.
Definition document_encoding.hpp:37
@ NEED_INPUT
More input is needed to continue.
Definition document_encoding.hpp:34
DocumentSyntaxAccuracy
Accuracy of the syntax roles actually displayed, independently of recovery errors.
Definition document_highlight_types.hpp:38
DocumentSyntaxState
Syntax projection state; text remains readable while context is prepared.
Definition document_highlight_types.hpp:19
@ UNSUPPORTED_PROFILE
A construct exceeds the selected lexical profile; plain text remains available.
Definition document_highlight_types.hpp:23
@ REPLAY_UNAVAILABLE
The source cannot restore the required earlier lexical context.
Definition document_highlight_types.hpp:26
@ RESOURCE_LIMIT
The fixed lexical policy was exhausted; plain text remains available.
Definition document_highlight_types.hpp:24
DocumentLanguage
Explicit lexical profiles; unknown names resolve to PLAIN.
Definition document_highlight_types.hpp:11
@ POSTGRESQL_LEXICAL
Bounded PostgreSQL source profile, not a semantic parser.
Definition document_highlight_types.hpp:13
@ MARKDOWN_SOURCE
Bounded raw Markdown source profile, not a renderer.
Definition document_highlight_types.hpp:15
@ MYSQL_LEXICAL
Bounded MySQL dump/stored-program source profile.
Definition document_highlight_types.hpp:14
@ PLAIN
Source bytes have the normal role.
Definition document_highlight_types.hpp:12
@ DISABLED
Recording is stopped; retained evidence remains available.
Definition diagnostics.hpp:72
DocumentHighlightStatus
Streaming progress, caller backpressure or an explicit lexical limitation.
Definition document_highlight_types.hpp:72
@ INVALID_CONFIGURATION
Invalid language, zero work limit or out-of-range limits.
Definition document_highlight_types.hpp:77
@ INVALID_INPUT
Non-scalar value, zero length, discontinuity or uint64 overflow.
Definition document_highlight_types.hpp:78
@ UNAVAILABLE
A hosted session requires a borrowed executor.
Definition background_options.hpp:13
DocumentMySqlMode
MySQL lexical string modes supported initially and by source SET SQL_MODE.
Definition document_highlight_types.hpp:92
@ NORMAL
Backslash escapes inside single/double quoted strings.
Definition document_highlight_types.hpp:93
@ NO_BACKSLASH_ESCAPES
Literal backslashes; doubled delimiters still quote themselves.
Definition document_highlight_types.hpp:94
DocumentLanguage documentLanguageFromName(std::string_view name) noexcept
@ NONE
Caption only, including a single-glyph action button.
Definition controls.hpp:157
SemanticRole
Theme-independent source roles implemented by these profiles.
Definition document_highlight_types.hpp:52
@ NORMAL
Unclassified source and whitespace.
Definition document_highlight_types.hpp:53
@ STRING
SQL literal or literal Markdown code region.
Definition document_highlight_types.hpp:56
@ KEYWORD
Recognized SQL keyword.
Definition document_highlight_types.hpp:54
@ OPERATOR
SQL punctuation or operator character.
Definition document_highlight_types.hpp:59
@ MARKUP
Markdown delimiter/punctuation or MySQL client directive/terminator.
Definition document_highlight_types.hpp:61
@ COMMENT
SQL comment or executable-comment wrapper bytes.
Definition document_highlight_types.hpp:57
Committed progress; errors leave their triggering transition uncommitted.
Definition document_highlight_types.hpp:84
std::uint64_t errorOffset
Triggering scalar offset, or delayed construct start.
Definition document_highlight_types.hpp:88
DocumentHighlightStatus status
Reason this bounded call stopped.
Definition document_highlight_types.hpp:87
std::size_t inputConsumed
Decoded scalars admitted during this call.
Definition document_highlight_types.hpp:85
std::size_t outputProduced
Runs written to caller storage during this call.
Definition document_highlight_types.hpp:86
Fixed-capacity policy copied into checkpoints.
Definition document_highlight_types.hpp:98
std::size_t workLimit
Scalar admissions and run deliveries per call; nonzero. EOF adds one fixed step.
Definition document_highlight_types.hpp:100
std::uint8_t maxDelimiterLength
SQL tag, MySQL client or Markdown delimiter capacity, in characters; 1..64.
Definition document_highlight_types.hpp:101
DocumentLanguage language
Explicit supported lexical profile.
Definition document_highlight_types.hpp:99
std::uint16_t maxCommentDepth
Maximum simultaneously open SQL block comments; nonzero.
Definition document_highlight_types.hpp:102
DocumentMySqlMode mysqlMode
Initial MySQL escape policy; ANSI_QUOTES unsupported.
Definition document_highlight_types.hpp:103
std::uint32_t mysqlServerVersion
Version-comment target in Mmmrr/MMmmrr form, 1..999999.
Definition document_highlight_types.hpp:104
One nonempty semantic interval in original source bytes.
Definition document_highlight_types.hpp:65
std::uint64_t byteLength
Number of original bytes, never decoded characters.
Definition document_highlight_types.hpp:67
SemanticRole role
Semantic role for every byte in this interval.
Definition document_highlight_types.hpp:68
std::uint64_t byteOffset
Inclusive source byte start.
Definition document_highlight_types.hpp:66