code: func lineInfo(s string, curPos int) (ln int, col int) {
  	pos := 0
  	colStartPos := 0
  	ln = 1
  
  	for pos < curPos {
  		if s[pos] == '\n' {
  			ln++
  			colStartPos = pos + 1
  		}
  		pos++
  	}
  
  	col = pos - colStartPos + 1
  	return
  }
docs: // lineInfo