aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexRust.cxx
diff options
context:
space:
mode:
authorPavel Sountsov <siege@google.com>2016-04-16 22:36:56 -0700
committerPavel Sountsov <siege@google.com>2016-04-16 22:36:56 -0700
commit3c2a14d4ec6e433e391b2d08985927b8b30641c4 (patch)
tree335138c3f456ac4188b6fc91536b559cefa6e761 /lexers/LexRust.cxx
parent483bbe47309348d096388379c1ad03e2082f647f (diff)
downloadscintilla-mirror-3c2a14d4ec6e433e391b2d08985927b8b30641c4.tar.gz
Feature [feature-requests:#1146]. Allow '?' as a valid operator in Rust.
See https://doc.rust-lang.org/book/unsized-types.html#sized.
Diffstat (limited to 'lexers/LexRust.cxx')
-rw-r--r--lexers/LexRust.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx
index 0d40de2cf..a834e32f4 100644
--- a/lexers/LexRust.cxx
+++ b/lexers/LexRust.cxx
@@ -339,7 +339,7 @@ static bool IsOneCharOperator(int c) {
|| c == '*' || c == '/' || c == '^' || c == '%'
|| c == '.' || c == ':' || c == '!' || c == '<'
|| c == '>' || c == '=' || c == '-' || c == '&'
- || c == '|' || c == '$';
+ || c == '|' || c == '$' || c == '?';
}
static bool IsTwoCharOperator(int c, int n) {