From f5140067b48216e964db25d9c4b8dd0ce0ffeccd Mon Sep 17 00:00:00 2001 From: SiegeLord Date: Sat, 21 Dec 2013 11:24:11 -0500 Subject: Fix whitespace in LexRust.cxx --- lexers/LexRust.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lexers/LexRust.cxx') diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx index d86b659a5..3a6c8fff3 100644 --- a/lexers/LexRust.cxx +++ b/lexers/LexRust.cxx @@ -262,16 +262,16 @@ static void ScanNumber(Accessor& styler, int& pos) { int n = styler.SafeGetCharAt(pos + 1, '\0'); bool error = false; if (c == '0' && n == 'x') { - pos += 2; - base = 16; - } else if (c == '0' && n == 'b') { - pos += 2; - base = 2; - } - int old_pos = pos; - ScanDigits(styler, pos, base); - c = styler.SafeGetCharAt(pos, '\0'); - if (c == 'u' || c == 'i') { + pos += 2; + base = 16; + } else if (c == '0' && n == 'b') { + pos += 2; + base = 2; + } + int old_pos = pos; + ScanDigits(styler, pos, base); + c = styler.SafeGetCharAt(pos, '\0'); + if (c == 'u' || c == 'i') { pos++; c = styler.SafeGetCharAt(pos, '\0'); n = styler.SafeGetCharAt(pos + 1, '\0'); -- cgit v1.2.3