ide: PDB debugger now can use Esc scripts for pretty printing

This commit is contained in:
Mirek Fidler 2025-01-09 17:47:11 +01:00
parent 33431e0b32
commit fa58d0c40a
39 changed files with 1118 additions and 630 deletions

View file

@ -105,6 +105,28 @@ void CSyntax::InitKeywords()
"GetMinSize", "GetStdSize",
NULL
};
static const char *dbg[] = {
"void", "self", "if", "else", "while", "do", "case",
"default", "break", "return", "switch", "operator", "for",
"fn", "typename",
"value", "from", "items", "template_param",
"TEXT", "HAS_DATA", "ITEM_COUNT", "ITEM_TYPE", "STRING",
"ITEM_PTR", "ITEM_PTRS", "ITEM_DEREF_PTRS", "CHUNK",
NULL
};
static const char *dbglib[] = {
"is_number", "is_array", "is_map", "is_void", "int", "to_string", "to_number",
"count", "keys", "values", "rand", "reverse", "sort", "order", "replace",
"ToUpper", "ToLower", "len", "mid", "exists",
"SizeOf", "TypeName", "DeRef", "Field",
"PeekPtr", "Peek8", "Peek16", "Peek32", "Peek64", "Peek32f", "Peek64f",
"SizeOfPtr",
"LOG",
NULL
};
static const char *java[] = {
"abstract", "assert", "boolean", "byte", "case",
"catch", "char", "class", "const",
@ -337,6 +359,7 @@ void CSyntax::InitKeywords()
LoadSyntax(css, cssn);
LoadSyntax(empty, empty); // This is JSON - no keywords to highlights
LoadSyntax(php, php2);
LoadSyntax(dbg, dbglib);
kw_macros = InitUpp(upp_macros);
kw_logs = InitUpp(upp_logs);