diff options
author | Pavel Sountsov <siege@google.com> | 2016-04-16 22:36:56 -0700 |
---|---|---|
committer | Pavel Sountsov <siege@google.com> | 2016-04-16 22:36:56 -0700 |
commit | 3c2a14d4ec6e433e391b2d08985927b8b30641c4 (patch) | |
tree | 335138c3f456ac4188b6fc91536b559cefa6e761 /lexers/LexRust.cxx | |
parent | 483bbe47309348d096388379c1ad03e2082f647f (diff) | |
download | scintilla-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.cxx | 2 |
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) { |