aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSiegeLord <slabode@aim.com>2014-07-29 12:02:55 -0400
committerSiegeLord <slabode@aim.com>2014-07-29 12:02:55 -0400
commit7f1984eb7e93fe6dc3677ca6cc80e96bc4889265 (patch)
tree8c0ee7f98d7a4e046b71d35c2dab93fa377b8947
parentd8db03d10a2f335eacd6208e54e2722341cb7629 (diff)
downloadscintilla-mirror-7f1984eb7e93fe6dc3677ca6cc80e96bc4889265.tar.gz
Rust: Allow escaping naked CR in strings.
-rw-r--r--lexers/LexRust.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx
index 0d1106849..d0e499533 100644
--- a/lexers/LexRust.cxx
+++ b/lexers/LexRust.cxx
@@ -351,7 +351,7 @@ static bool IsValidCharacterEscape(int c) {
}
static bool IsValidStringEscape(int c) {
- return IsValidCharacterEscape(c) || c == '\n';
+ return IsValidCharacterEscape(c) || c == '\n' || c == '\r';
}
static bool ScanNumericEscape(Accessor &styler, int& pos, int num_digits, bool stop_asap) {