(l *lexer)
| 389 | } |
| 390 | |
| 391 | func createTableParamDetailsState(l *lexer) state { |
| 392 | l.start = l.pos |
| 393 | for { |
| 394 | c := l.next() |
| 395 | |
| 396 | if c == coma || c == rprn { |
| 397 | l.rewind() |
| 398 | l.emit(TColumnDetails) |
| 399 | if c == coma { |
| 400 | l.next() |
| 401 | } |
| 402 | |
| 403 | return createTableParamState |
| 404 | } |
| 405 | |
| 406 | if l.hasPrefix("COMMENT ") { |
| 407 | l.pos += 7 |
| 408 | l.accept(whitespace) |
| 409 | if !eatString(l) { |
| 410 | l.emit(TIllegal) |
| 411 | return nil |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | if l.hasPrefix("DEFAULT ") { |
| 416 | l.pos += 7 |
| 417 | l.accept(whitespace) |
| 418 | eatString(l) |
| 419 | } |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | func eatNumber(l *lexer) bool { |
| 424 | if l.hasPrefix("-") { |