This is the wrong place to pass length, revert this code. The correct place to pass length is above, where the `if col is not None` test is:

```python
if col is not None:
    self.highlight.range(line, col, length=length, near=near, error_type=error_type, word_re=self.word_re)
```