diff options
Diffstat (limited to 'lexers/LexRust.cxx')
| -rw-r--r-- | lexers/LexRust.cxx | 20 | 
1 files changed, 10 insertions, 10 deletions
| 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'); | 
