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. --- lexers/LexRust.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') 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