From 3c2a14d4ec6e433e391b2d08985927b8b30641c4 Mon Sep 17 00:00:00 2001 From: Pavel Sountsov Date: Sat, 16 Apr 2016 22:36:56 -0700 Subject: Feature [feature-requests:#1146]. Allow '?' as a valid operator in Rust. See https://doc.rust-lang.org/book/unsized-types.html#sized. --- doc/ScintillaHistory.html | 6 ++++++ lexers/LexRust.cxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 @@ Johannes Sasongko fstirlitz Robin Haberkorn + + Pavel Sountsov

@@ -513,6 +515,10 @@ This is for Python 3.5.

  • + The Rust lexer allows '?' as an operator. + Feature #1146. +
  • +
  • Doubled size of compiled regex buffer. Bug #1822.
  • 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) { -- cgit v1.2.3