mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 01:45:06 +00:00

This is a little bit messy but the basic idea is: Syntax::Highlighter now has a Syntax::HighlighterClient to talk to the outside world. It mostly communicates in LibGUI primitives that are available in headers, so inlineable. GUI::TextEditor inherits from Syntax::HighlighterClient. This let us to move GUI::JSSyntaxHighlighter to JS::SyntaxHighlighter and remove LibGUI's dependency on LibJS.
10 lines
307 B
CMake
10 lines
307 B
CMake
compile_gml(TextEditorWindow.gml TextEditorWindowGML.h text_editor_window_gml)
|
|
|
|
set(SOURCES
|
|
main.cpp
|
|
TextEditorWidget.cpp
|
|
TextEditorWindowGML.h
|
|
)
|
|
|
|
serenity_app(TextEditor ICON app-text-editor)
|
|
target_link_libraries(TextEditor LibWeb LibMarkdown LibGUI LibShell LibRegex LibDesktop LibCpp LibJS)
|