fix highlighting of inline comments

Currently, if comments are on the same line, they aren't highlighted.

```sh
echo "hi"     # This comment would not be highlighted
```

This pull request fixes that bug.