LibSyntax: Teach each highlighter about it's comment syntax

This commit is contained in:
Kyle Lanmon 2022-10-26 10:01:13 -05:00 committed by Andrew Kaster
commit 31290c8527
Notes: sideshowbarker 2024-07-17 21:16:31 +09:00
11 changed files with 24 additions and 0 deletions

View file

@ -19,6 +19,8 @@ public:
virtual bool is_navigatable(u64) const override;
virtual Syntax::Language language() const override { return Syntax::Language::CSS; }
virtual Optional<StringView> comment_prefix() const override { return "/*"sv; }
virtual Optional<StringView> comment_suffix() const override { return "*/"sv; }
virtual void rehighlight(Palette const&) override;
protected: