From 371a18b1e53b0f449562b52d8465e035d813b48a Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 14 Jan 2024 04:02:01 -0500 Subject: [PATCH] Syntax Highlighting In QtCreator --- src/common.ts | 2 +- syntax-highlighting/ksyntaxhighlighting.xml | 54 +++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 syntax-highlighting/ksyntaxhighlighting.xml diff --git a/src/common.ts b/src/common.ts index d64d87b..e996743 100644 --- a/src/common.ts +++ b/src/common.ts @@ -76,7 +76,7 @@ export function assertSize(name: string, size: number, isDefined: boolean) { out += `#define ${macro} ${toHex(size)}\n`; // Check Size out += `${getAssertFunction()}(sizeof (${name}) == ${macro}, "Invalid Size");\n`; - // Hide Structure Size Of The Real Size Is Unknown + // Hide Structure Size If The Real Size Is Unknown if (!isDefined) { out += `#undef ${macro}\n`; } diff --git a/syntax-highlighting/ksyntaxhighlighting.xml b/syntax-highlighting/ksyntaxhighlighting.xml new file mode 100644 index 0000000..9fd7358 --- /dev/null +++ b/syntax-highlighting/ksyntaxhighlighting.xml @@ -0,0 +1,54 @@ + + + + + extends + size + vtable-size + vtable + property + static-property + static-property-array + method + virtual-method + static-method + constructor + + + char + uchar + int + uint + float + bool + void + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +