// ShortenedLineheadMsg is for convenience - a shortened linehead either, or a message saying "at start of line"
ShortenedLineheadMsg is for convenience - a shortened linehead either, or a message saying "at start of line"
// ShortenedLineheadMsg is for convenience - a shortened linehead either or a message saying " at start of line "
func (pos *ParserPosition) ShortenedLineheadMsg() (linehead string) {
	linehead = pos.currentLineHead
	l := len(linehead)
	if l > 0 {
		if l > 30 {
			linehead = "..." + linehead[l-30:]
		}
		linehead = fmt.Sprintf("after '%v'", linehead)
	} else {
		linehead = "at start of line"
	}
	return
}
func ( pos * ParserPosition ) ShortenedLineheadMsg ( ) ( linehead string ) { linehead = pos . currentLineHead l := len ( linehead ) if l > 0 { if l > 30 { linehead = " " + linehead [ l - 30 : ] } linehead = fmt . Sprintf ( " " , linehead ) } else { linehead = " " } return }
ShortenedLineheadMsg is for convenience - a shortened linehead either, or a message saying "at start of line"
ShortenedLineheadMsg is for convenience - a shortened linehead either or a message saying " at start of line "