diff options
author | Kyle Lanmon <kyle.lanmon@gmail.com> | 2022-10-26 10:01:13 -0500 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-11-27 18:28:43 -0700 |
commit | 31290c8527a66b4ca0f2138123cf63cf9f6842c5 (patch) | |
tree | a0f3f3d0a030694ce11e028a227c98b6b5d73e6b /Userland/Libraries/LibSQL | |
parent | a8c73998f1a46976de787abcab8fbc1d9cbe3a84 (diff) | |
download | serenity-31290c8527a66b4ca0f2138123cf63cf9f6842c5.zip |
LibSyntax: Teach each highlighter about it's comment syntax
Diffstat (limited to 'Userland/Libraries/LibSQL')
-rw-r--r-- | Userland/Libraries/LibSQL/AST/SyntaxHighlighter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSQL/AST/SyntaxHighlighter.h b/Userland/Libraries/LibSQL/AST/SyntaxHighlighter.h index 7e6120b948..0452489f57 100644 --- a/Userland/Libraries/LibSQL/AST/SyntaxHighlighter.h +++ b/Userland/Libraries/LibSQL/AST/SyntaxHighlighter.h @@ -19,6 +19,9 @@ public: virtual bool is_identifier(u64) const override; virtual Syntax::Language language() const override { return Syntax::Language::SQL; } + virtual Optional<StringView> comment_prefix() const override { return "--"sv; } + virtual Optional<StringView> comment_suffix() const override { return {}; } + virtual void rehighlight(Palette const&) override; protected: |