Macaulay2 / M2-emacs

Macaulay2 emacs files
GNU General Public License v3.0
5 stars 3 forks source link

File position matching changes #37

Closed mahrud closed 1 year ago

mahrud commented 1 year ago

This is an alternative to #36:

cc: @d-torrance

d-torrance commented 1 year ago

Is the only difference between this and #36 that we're capturing the [[:alpha:]]+ so we don't need to decrement the match-beginning and match-end arguments?

I have no strong opinion either way -- just wanted to make sure I wasn't missing anything. :)

mahrud commented 1 year ago

Mostly yes, but also keeping the option of switching to something like \\(FilePosition|FunctionBody|...\\) later.