From 44b0bf59d9538343178e52346991b527aeb53558 Mon Sep 17 00:00:00 2001 From: Oscar Campbell Date: Tue, 2 Jun 2015 22:22:27 +0200 Subject: [PATCH] Change const def to cleaner code per suggestion. --- compiler/lexer.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/lexer.nim b/compiler/lexer.nim index bc4b46bc9..a60518323 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -266,8 +266,7 @@ proc getNumber(L: var TLexer): TToken = xi: BiggestInt const literalishChars = { 'A'..'F', 'a'..'f', '0'..'9', 'X', 'x', 'o', 'c', 'C', 'b', 'B', '_', '.', '\''} - const literalishCharsNoDot = { 'A'..'F', 'a'..'f', '0'..'9', 'X', 'x', 'o', - 'c', 'C', 'b', 'B', '_', '\''} + const literalishCharsNoDot = literalishChars - {'.'} proc matchUnderscoreChars(L: var TLexer, tok: var TToken, chars: set[char]) = var pos = L.bufpos # use registers for pos, buf