You don’t need to capture anything inside `REFERENCE_REGEX` or `COMMENT_REGEX` anymore. Which means you shouldn’t care about whitespace in `COMMENT_REGEX`:
```ruby
REFERENCE_REGEX = %r(\{\{[\w\.]+\}\})
COMMENT_REGEX = %r(\{\{!.*\}\})
```
Yeah, there’s no need to escape `!` either.