mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
js: Turn on live syntax highlighting by default
This commit is contained in:
parent
fec52fa94b
commit
b2b30567ab
Notes:
sideshowbarker
2024-07-19 07:09:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b2b30567ab2
1 changed files with 4 additions and 2 deletions
|
@ -392,7 +392,7 @@ void sigint_handler()
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
bool gc_on_every_allocation = false;
|
||||
bool syntax_highlight = false;
|
||||
bool disable_syntax_highlight = false;
|
||||
bool test_mode = false;
|
||||
const char* script_path = nullptr;
|
||||
|
||||
|
@ -400,11 +400,13 @@ int main(int argc, char** argv)
|
|||
args_parser.add_option(s_dump_ast, "Dump the AST", "dump-ast", 'A');
|
||||
args_parser.add_option(s_print_last_result, "Print last result", "print-last-result", 'l');
|
||||
args_parser.add_option(gc_on_every_allocation, "GC on every allocation", "gc-on-every-allocation", 'g');
|
||||
args_parser.add_option(syntax_highlight, "Enable live syntax highlighting", "syntax-highlight", 's');
|
||||
args_parser.add_option(disable_syntax_highlight, "Disable live syntax highlighting", "no-syntax-highlight", 's');
|
||||
args_parser.add_option(test_mode, "Run the interpreter with added functionality for the test harness", "test-mode", 't');
|
||||
args_parser.add_positional_argument(script_path, "Path to script file", "script", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
bool syntax_highlight = !disable_syntax_highlight;
|
||||
|
||||
OwnPtr<JS::Interpreter> interpreter;
|
||||
|
||||
interrupt_interpreter = [&] {
|
||||
|
|
Loading…
Reference in a new issue