mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Fixed some typos.
This commit is contained in:
parent
58decb39a9
commit
39bbf683fb
@ -186,7 +186,7 @@ class Tokenizer:
|
|||||||
while True:
|
while True:
|
||||||
token = lexer.get_token()
|
token = lexer.get_token()
|
||||||
if not token:
|
if not token:
|
||||||
raise SyntaxError, 'Missing "]"'
|
raise SyntaxError, 'Missing "]".'
|
||||||
elif token == ']':
|
elif token == ']':
|
||||||
return ret
|
return ret
|
||||||
elif token == '[':
|
elif token == '[':
|
||||||
@ -209,21 +209,21 @@ class Tokenizer:
|
|||||||
break
|
break
|
||||||
elif token == '|' and conf.supybot.pipeSyntax():
|
elif token == '|' and conf.supybot.pipeSyntax():
|
||||||
if not args:
|
if not args:
|
||||||
raise SyntaxError, '"|" with nothing preceding'
|
raise SyntaxError, '"|" with nothing preceding.'
|
||||||
ends.append(args)
|
ends.append(args)
|
||||||
args = []
|
args = []
|
||||||
elif conf.supybot.bracketSyntax():
|
elif conf.supybot.bracketSyntax():
|
||||||
if token == '[':
|
if token == '[':
|
||||||
args.append(self._insideBrackets(lexer))
|
args.append(self._insideBrackets(lexer))
|
||||||
elif token == ']':
|
elif token == ']':
|
||||||
raise SyntaxError, 'Spurious "["'
|
raise SyntaxError, 'Spurious "]".'
|
||||||
else:
|
else:
|
||||||
args.append(self._handleToken(token))
|
args.append(self._handleToken(token))
|
||||||
else:
|
else:
|
||||||
args.append(self._handleToken(token))
|
args.append(self._handleToken(token))
|
||||||
if ends:
|
if ends:
|
||||||
if not args:
|
if not args:
|
||||||
raise SyntaxError, '"|" with nothing following'
|
raise SyntaxError, '"|" with nothing following.'
|
||||||
args.append(ends.pop())
|
args.append(ends.pop())
|
||||||
while ends:
|
while ends:
|
||||||
args[-1].append(ends.pop())
|
args[-1].append(ends.pop())
|
||||||
|
Loading…
Reference in New Issue
Block a user