diff options
author | SiegeLord <slabode@aim.com> | 2014-07-29 14:45:14 -0400 |
---|---|---|
committer | SiegeLord <slabode@aim.com> | 2014-07-29 14:45:14 -0400 |
commit | fe94b9bc3359944c1762648dadf2b1d18cfe422e (patch) | |
tree | 027c598c9890473fcac134d8d4f0bda89b8349f9 /include | |
parent | 69fa4b54a2d43de37b7bd66f7f61a8afbd07434a (diff) | |
download | scintilla-mirror-fe94b9bc3359944c1762648dadf2b1d18cfe422e.tar.gz |
Rust: Highlight byte-string literals.
This adds support for two new string literals and one new string literal,
corresponding to the existing versions of these. Compared to the originals, the
new literals have slightly different escapes and are ASCII only. I've decided
to simply add flags to the existing scanners to handle them. New styles had to
be added to handle the line spanning string literals. The byte character style
was added for consistency.
Diffstat (limited to 'include')
-rw-r--r-- | include/SciLexer.h | 3 | ||||
-rw-r--r-- | include/Scintilla.iface | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/SciLexer.h b/include/SciLexer.h index 297843e29..673acb55d 100644 --- a/include/SciLexer.h +++ b/include/SciLexer.h @@ -1693,6 +1693,9 @@ #define SCE_RUST_LIFETIME 18 #define SCE_RUST_MACRO 19 #define SCE_RUST_LEXERROR 20 +#define SCE_RUST_BYTESTRING 21 +#define SCE_RUST_BYTESTRINGR 22 +#define SCE_RUST_BYTECHARACTER 23 #define SCE_DMAP_DEFAULT 0 #define SCE_DMAP_COMMENT 1 #define SCE_DMAP_NUMBER 2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 51e9c4735..cfbc7bc9f 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -4458,6 +4458,9 @@ val SCE_RUST_IDENTIFIER=17 val SCE_RUST_LIFETIME=18 val SCE_RUST_MACRO=19 val SCE_RUST_LEXERROR=20 +val SCE_RUST_BYTESTRING=21 +val SCE_RUST_BYTESTRINGR=22 +val SCE_RUST_BYTECHARACTER=23 # Lexical states for SCLEX_DMAP lex DMAP=SCLEX_DMAP SCE_DMAP_ val SCE_DMAP_DEFAULT=0 |