aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorSiegeLord <slabode@aim.com>2014-07-29 14:45:14 -0400
committerSiegeLord <slabode@aim.com>2014-07-29 14:45:14 -0400
commit5bc323d082e8c7984cab85da59f2ee6d162cbb4f (patch)
treedc2e8fec1efa83fb58e8ac90857cc5b4a6334b22 /include
parent7f1984eb7e93fe6dc3677ca6cc80e96bc4889265 (diff)
downloadscintilla-mirror-5bc323d082e8c7984cab85da59f2ee6d162cbb4f.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.h3
-rw-r--r--include/Scintilla.iface3
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