summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL
diff options
context:
space:
mode:
authorKyle Lanmon <kyle.lanmon@gmail.com>2022-10-26 10:01:13 -0500
committerAndrew Kaster <andrewdkaster@gmail.com>2022-11-27 18:28:43 -0700
commit31290c8527a66b4ca0f2138123cf63cf9f6842c5 (patch)
treea0f3f3d0a030694ce11e028a227c98b6b5d73e6b /Userland/Libraries/LibSQL
parenta8c73998f1a46976de787abcab8fbc1d9cbe3a84 (diff)
downloadserenity-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.h3
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: