diff options
author | vitya-smirnov <[email protected]> | 2025-07-22 12:56:45 +0300 |
---|---|---|
committer | vitya-smirnov <[email protected]> | 2025-07-22 13:12:00 +0300 |
commit | 010e56d9c97af70099de4040397ff808bb72c4e9 (patch) | |
tree | aec26608ce3d457412418db0e3dfb6968cc39f9d /yql/essentials/sql/v1/highlight/sql_highlight.h | |
parent | cf94d8a9ef2bd554213054a9cb6352a20a134a10 (diff) |
YQL-19616: Improve TextMate and Vim grammars
- Fixed multiline tokens
- Fixed REAL number display
- Disabled punctuation highlighting
- Refactored by extracting properties
to core highlighting
commit_hash:a2d1eb6e4e49b1cb785b90accbdecebe977faa13
Diffstat (limited to 'yql/essentials/sql/v1/highlight/sql_highlight.h')
-rw-r--r-- | yql/essentials/sql/v1/highlight/sql_highlight.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/highlight/sql_highlight.h b/yql/essentials/sql/v1/highlight/sql_highlight.h index 43c46c39d53..3d3fcdf7f3e 100644 --- a/yql/essentials/sql/v1/highlight/sql_highlight.h +++ b/yql/essentials/sql/v1/highlight/sql_highlight.h @@ -27,10 +27,18 @@ namespace NSQLHighlight { Error, }; + struct TRangePattern { + TString Begin; + TString End; + }; + struct TUnit { EUnitKind Kind; TVector<NSQLTranslationV1::TRegexPattern> Patterns; TMaybe<TVector<NSQLTranslationV1::TRegexPattern>> PatternsANSI; + TMaybe<TRangePattern> RangePattern; + bool IsPlain = true; + bool IsCodeGenExcluded = false; }; struct THighlighting { |