Enable tokenizer to support separators between keywords and integers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from smnp.token.tools import tokenizeRegexPattern
|
||||
from smnp.token.tools import regexPatternTokenizer, separate
|
||||
from smnp.token.type import TokenType
|
||||
|
||||
def tokenizeInteger(input, current, line):
|
||||
return tokenizeRegexPattern(TokenType.INTEGER, r'\d', input, current, line)
|
||||
return separate(regexPatternTokenizer(TokenType.INTEGER, r'\d'))(input, current, line)
|
||||
|
||||
Reference in New Issue
Block a user