Kaydet (Commit) 74ef1b83 authored tarafından Colomban Wendling's avatar Colomban Wendling

Update for new Scintilla styles

üst d77fe4c6
......@@ -14,6 +14,9 @@ word4=type
string=string_1
stringraw=string_2
character=character
bytestring=string_1
bytestringraw=string_2
bytecharacter=character
operator=operator
identifier=identifier_1
lifetime=parameter
......
......@@ -1550,8 +1550,11 @@ gboolean highlighting_is_string_style(gint lexer, gint style)
case SCLEX_RUST:
return (style == SCE_RUST_CHARACTER ||
style == SCE_RUST_BYTECHARACTER ||
style == SCE_RUST_STRING ||
style == SCE_RUST_STRINGR ||
style == SCE_RUST_BYTESTRING ||
style == SCE_RUST_BYTESTRINGR ||
style == SCE_RUST_LEXERROR);
}
return FALSE;
......
......@@ -1326,7 +1326,10 @@ static const HLStyle highlighting_styles_RUST[] =
{ SCE_RUST_IDENTIFIER, "identifier", FALSE },
{ SCE_RUST_LIFETIME, "lifetime", FALSE },
{ SCE_RUST_MACRO, "macro", FALSE },
{ SCE_RUST_LEXERROR, "lexerror", FALSE }
{ SCE_RUST_LEXERROR, "lexerror", FALSE },
{ SCE_RUST_BYTESTRING, "bytestring", FALSE },
{ SCE_RUST_BYTESTRINGR, "bytestringr", FALSE },
{ SCE_RUST_BYTECHARACTER, "bytecharacter", FALSE }
};
static const HLKeyword highlighting_keywords_RUST[] =
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment