(intro string, err error)
| 21 | } |
| 22 | |
| 23 | func log_parse_error(intro string, err error) { |
| 24 | if el, ok := err.(scanner.ErrorList); ok { |
| 25 | log.Printf("%s:", intro) |
| 26 | for _, er := range el { |
| 27 | log.Printf(" %s", er) |
| 28 | } |
| 29 | } else { |
| 30 | log.Printf("%s: %s", intro, err) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | //------------------------------------------------------------------------- |
| 35 | // auto_complete_file |