aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSiegeLord <slabode@aim.com>2014-07-29 11:58:21 -0400
committerSiegeLord <slabode@aim.com>2014-07-29 11:58:21 -0400
commitd8db03d10a2f335eacd6208e54e2722341cb7629 (patch)
treed9feb297b70458723f4fb7ac6aa148f8e4605634
parentdc1fdebe5dcd13a7d6f937cf09432a14d44ba956 (diff)
downloadscintilla-mirror-d8db03d10a2f335eacd6208e54e2722341cb7629.tar.gz
Rust: Update hashbang comment syntax.
Hashbang comments that start with the following 3 characters: #![ do not count as hashbang comments, but rather some other syntax (inner attribute).
-rw-r--r--lexers/LexRust.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx
index 8a3020532..0d1106849 100644
--- a/lexers/LexRust.cxx
+++ b/lexers/LexRust.cxx
@@ -645,7 +645,7 @@ void SCI_METHOD LexerRust::Lex(unsigned int startPos, int length, int initStyle,
int n = styler.SafeGetCharAt(pos + 1, '\0');
int n2 = styler.SafeGetCharAt(pos + 2, '\0');
- if (pos == 0 && c == '#' && n == '!') {
+ if (pos == 0 && c == '#' && n == '!' && n2 != '[') {
pos += 2;
ResumeLineComment(styler, pos, max, NotDocComment);
} else if (IsWhitespace(c)) {