clifford-github / sublime-ansible

Syntax highlighting for Ansible
MIT License
135 stars 11 forks source link

Simpler regex using non-greedy star #29

Closed Alexey-T closed 1 year ago

Alexey-T commented 1 year ago

match: ({{ [^{}]+ }})|(\${[^{}]+})

This can be much simpler. Use star-char with non-greedy modifier ? . Eg a.*?a finds text inside a chars.

killua99 commented 1 year ago

I'm closing this issue since the package as been rewritten from scratch. Feel free open a new issue when the new package hit mainstream