1 files changed,
2 insertions(+),
4 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-06-22 18:00:13 +0300
Authored at:
2026-06-17 15:46:56 +0300
Change ID:
txtxovwptotkruyvvprlqmpwusqxsmos
Parent:
42ed6f1
M
journal/parser/parser.go
··· 138 138 p.advance() 139 139 } 140 140 tx.Code = new(code.String()) 141 - p.advance() // TODO: why? 141 + p.advance() 142 142 p.skipWhitespace() 143 143 } 144 144 ··· 772 772 return false 773 773 case token.COMMODITYMARK, token.STRING, token.INT, token.DECIMAL, token.MINUS, token.PLUS, token.PARENEXPR: 774 774 return true 775 - case token.TEXT: 776 - return len(p.cur.Literal) > 0 && p.cur.Literal[0] >= '0' && p.cur.Literal[0] <= '9' 777 775 } 778 776 } 779 777 ··· 1128 1126 } 1129 1127 1130 1128 func (p *Parser) parseOptInlineComment() *ast.Comment { 1131 - p.skipWhitespace() // todo: 1129 + p.skipWhitespace() 1132 1130 if p.cur.Type != token.SEMICOLON { 1133 1131 return nil 1134 1132 }