Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::detail::HighlightMySqlState Struct Reference

Fixed MySQL client/source state, with no runtime or variable environment. More...

#include <document_highlight.hpp>

Public Attributes

std::array< char32_t, 64 > terminator {U';'}
 Current bounded client statement delimiter.
std::array< char32_t, 64 > replacement {}
 DELIMITER value under construction before newline/EOF.
std::array< std::uint8_t, 64 > matchedWidths {}
 Original-byte widths of a delayed delimiter prefix.
std::array< std::uint8_t, 64 > fallback {}
 KMP proper-prefix lengths for bounded delimiter matching.
std::array< char, 32 > modeWord {}
 One bounded SQL_MODE item, never the whole literal.
TokenRun matched {}
 Original byte interval of the delayed delimiter prefix.
DecodedScalar star {}
 Potential executable-comment closing star.
std::uint32_t version {}
 Accumulated executable-comment version gate.
std::uint16_t setDepth {}
 Parenthesis depth within unrelated SET expressions; bound65535.
std::uint8_t terminatorLength {1}
 Current client delimiter length, in ASCII characters.
std::uint8_t replacementLength {}
 New directive delimiter characters retained.
std::uint8_t matchedLength {}
 Current terminator prefix length.
std::uint8_t versionDigits {}
 Retained version digit count; bound6.
std::uint8_t modeWordLength {}
 Retained mode-list item length; bound32.
std::uint8_t atCount {}
 At-sign qualification count, saturated at two.
HighlightMySqlComment comment {HighlightMySqlComment::NONE}
 Executable wrapper phase.
HighlightMySqlSet set {HighlightMySqlSet::OFF}
 Observed SET clause phase.
HighlightMySqlTarget target {HighlightMySqlTarget::OTHER}
 Current assignment target.
DocumentMySqlMode currentMode {}
 Active session lexical mode.
DocumentMySqlMode savedMode {}
 Known @OLD_SQL_MODE value, if savedValid.
DocumentMySqlMode pendingMode {}
 Mode to commit at the complete client terminator.
DocumentMySqlMode pendingSavedMode {}
 Saved mode to commit at the complete client terminator.
bool lineStart {true}
 Only source-line indentation has been admitted.
bool wordLineStart {}
 Current bounded word began at a source-line start.
bool starPending {}
 A closing star is delayed across a chunk boundary.
bool createStatement {}
 Current statement began with CREATE.
bool routine {}
 Current CREATE defines a stored program; SET is not executed during definition.
bool savedValid {}
 One proven saved-mode slot is available.
bool pendingModeValid {}
 A supported mode update awaits the client terminator.
bool pendingSavedValid {}
 A supported save awaits the client terminator.
bool modeLiteral {}
 A supported SQL_MODE string is being observed.
bool modeNoBackslash {}
 Current mode literal includes NO_BACKSLASH_ESCAPES.
bool modeWordEnded {}
 Trailing whitespace began within a mode-list item.
bool directiveSpace {}
 Required whitespace after the DELIMITER keyword was admitted.
bool variablePrefix {}
 The last admitted source punctuation was an immediate variable-name @ prefix.
bool wordVariable {}
 Current bounded word follows @ and must not introduce a statement or keyword role.

Detailed Description

Fixed MySQL client/source state, with no runtime or variable environment.


The documentation for this struct was generated from the following file: