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 | |
| 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.
| -rw-r--r-- | doc/ScintillaHistory.html | 6 | ||||
| -rw-r--r-- | lexers/LexRust.cxx | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index c561521c9..b31856873 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -486,6 +486,8 @@ <td>Johannes Sasongko</td> <td>fstirlitz</td> <td>Robin Haberkorn</td> + </tr><tr> + <td>Pavel Sountsov</td> </tr> </table> <p> @@ -513,6 +515,10 @@ This is for Python 3.5. </li> <li> + The Rust lexer allows '?' as an operator. + <a href="http://sourceforge.net/p/scintilla/feature-requests/1146/">Feature #1146.</a> + </li> + <li> Doubled size of compiled regex buffer. <a href="http://sourceforge.net/p/scintilla/bugs/1822/">Bug #1822</a>. </li> 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) { |
