fix precedence issue with line highlighting