forked from enlightenment/edi
change the colour of strings - does not seem to apply to all strangely, will dig further into CLANG tokens later
This commit is contained in:
parent
99e6dfbbd9
commit
3350a896ed
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
static Edi_Color EDI_COLOR_FOREGROUND = "<color=#ffffff>";
|
static Edi_Color EDI_COLOR_FOREGROUND = "<color=#ffffff>";
|
||||||
static Edi_Color EDI_COLOR_COMMENT = "<color=#3399ff>";
|
static Edi_Color EDI_COLOR_COMMENT = "<color=#3399ff>";
|
||||||
//static Edi_Color EDI_COLOR_STRING = "<color=#ff5a35>";
|
static Edi_Color EDI_COLOR_STRING = "<color=#ff5a35>";
|
||||||
static Edi_Color EDI_COLOR_NUMBER = "<color=#D4D42A>";// font_weight=Bold";
|
static Edi_Color EDI_COLOR_NUMBER = "<color=#D4D42A>";// font_weight=Bold";
|
||||||
static Edi_Color EDI_COLOR_BRACE = "<color=#656565>";
|
static Edi_Color EDI_COLOR_BRACE = "<color=#656565>";
|
||||||
static Edi_Color EDI_COLOR_TYPE = "<color=#3399ff>";
|
static Edi_Color EDI_COLOR_TYPE = "<color=#3399ff>";
|
||||||
|
@ -411,6 +411,9 @@ _clang_load_highlighting(const char *path, Edi_Editor *editor)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CXToken_Literal:
|
case CXToken_Literal:
|
||||||
|
if (cursors[i].kind == CXCursor_StringLiteral || cursors[i].kind == CXCursor_CharacterLiteral)
|
||||||
|
color = EDI_COLOR_STRING;
|
||||||
|
else
|
||||||
color = EDI_COLOR_NUMBER;
|
color = EDI_COLOR_NUMBER;
|
||||||
break;
|
break;
|
||||||
case CXToken_Comment:
|
case CXToken_Comment:
|
||||||
|
|
Loading…
Reference in New Issue