- Added highlighters for new languages (SQL, Erlang, Forth) with filetype recognition. - Updated and reorganized syntax files to maintain consistency and modularity. - Introduced LSP transport framing unit tests and JSON decoding/dispatch tests. - Refactored `LspManager`, integrating UTF-16/UTF-8 position conversions and robust diagnostics handling. - Enhanced server start/restart logic with workspace root detection and logging to improve LSP usability.
14 lines
475 B
C++
14 lines
475 B
C++
// MarkdownHighlighter.h - simple Markdown highlighter
|
|
#pragma once
|
|
|
|
#include "LanguageHighlighter.h"
|
|
|
|
namespace kte {
|
|
class MarkdownHighlighter final : public StatefulHighlighter {
|
|
public:
|
|
void HighlightLine(const Buffer &buf, int row, std::vector<HighlightSpan> &out) const override;
|
|
|
|
LineState HighlightLineStateful(const Buffer &buf, int row, const LineState &prev,
|
|
std::vector<HighlightSpan> &out) const override;
|
|
};
|
|
} // namespace kte
|