Fix line number of code completion context
Don't highlight upper scope if line == 0