Update for new Scintilla styles

This commit is contained in:
Colomban Wendling 2014-08-10 02:21:54 +02:00
parent d77fe4c6b7
commit 74ef1b8344
3 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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;

View File

@ -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[] =
{