Replace identifier colour with preprocessor colour
This commit is contained in:
@@ -43,8 +43,6 @@
|
||||
<string>'lifetime</string>
|
||||
<key>me.bsago.bblm.rust.identifier</key>
|
||||
<string>Identifier</string>
|
||||
<key>me.bsago.bblm.rust.attribute</key>
|
||||
<string>#[attribute]</string>
|
||||
<key>me.bsago.bblm.rust.function</key>
|
||||
<string>fn functionname</string>
|
||||
<key>me.bsago.bblm.rust.module</key>
|
||||
@@ -56,8 +54,6 @@
|
||||
<string>rgb(135, 2, 219)</string>
|
||||
<key>me.bsago.bblm.rust.lifetime</key>
|
||||
<string>rgb(133, 20, 75)</string>
|
||||
<key>me.bsago.bblm.rust.attribute</key>
|
||||
<string>rgb(177, 13, 201)</string>
|
||||
<key>me.bsago.bblm.rust.identifier</key>
|
||||
<string>rgb(61, 153, 112)</string>
|
||||
<key>me.bsago.bblm.rust.function</key>
|
||||
|
||||
3
rust.mm
3
rust.mm
@@ -11,7 +11,6 @@
|
||||
#define kMaxLineLength 256
|
||||
|
||||
static NSString* const identifierColour = @"me.bsago.bblm.rust.identifier";
|
||||
static NSString* const attributeColour = @"me.bsago.bblm.rust.attribute";
|
||||
static NSString* const lifetimeColour = @"me.bsago.bblm.rust.lifetime";
|
||||
static NSString* const functionColour = @"me.bsago.bblm.rust.function";
|
||||
static NSString* const moduleColour = @"me.bsago.bblm.rust.module";
|
||||
@@ -826,7 +825,7 @@ OSErr calculateRuns(BBLMParamBlock ¶ms, const BBLMCallbackBlock *callbacks)
|
||||
if (!makeCodeRun(iter, runStart, *callbacks)) return noErr;
|
||||
runStart = iter.Offset();
|
||||
runLen = skipAttribute(iter);
|
||||
if (!addRun(attributeColour, runStart, runLen, *callbacks)) return noErr;
|
||||
if (!addRun(kBBLMPreprocessorRunKind, runStart, runLen, *callbacks)) return noErr;
|
||||
runStart = iter.Offset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user