Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | List of all members
LuaSyntaxHighlighter Class Reference

Syntax highlighter tuned for Lua keywords, strings, numbers, comments and Lua's long-bracket strings/comments. More...

#include <lua_debugger_code_editor.h>

Inheritance diagram for LuaSyntaxHighlighter:

Public Member Functions

 LuaSyntaxHighlighter (QTextDocument *parent, bool isDark)
 Build the rule set for isDark and bind to parent's document.
 
void setTheme (bool isDark)
 Rebuild the rule set for the new theme and rehighlight.
 

Protected Member Functions

void highlightBlock (const QString &text) override
 Apply highlighting to a single text block.
 

Detailed Description

Syntax highlighter tuned for Lua keywords, strings, numbers, comments and Lua's long-bracket strings/comments.

Theme-agnostic: takes a bool isDark at construction (and at setTheme) and pulls the matching colour table from a private helper. No coupling to LuaDebuggerCodeView or LuaDebuggerDialog.


The documentation for this class was generated from the following files: