blynn / nex

Lexer for Go
http://cs.stanford.edu/~blynn/nex/
GNU General Public License v3.0
416 stars 47 forks source link

Allow use of ^/$ special characters inside regular expressions (including nested ones) #11

Closed md2 closed 10 years ago

md2 commented 11 years ago

Currently ^ and $ symbols convey no special meaning and match literally. I want to be able to use these special symbols inside regular expressions, including nested ones. In the latter case I want them to match at the beginning and at the end of the substring, matched by an outer regular expression.

blynn commented 10 years ago

I've implemented the $ symbol. Also, I added code to parse the ^ symbol, but it has no effect yet.

blynn commented 10 years ago

The latest version now supports both ^ and $.