nim-lang / nim-mode

An emacs major mode for the Nim programming language
138 stars 46 forks source link

Font lock simplifications #201

Closed krux02 closed 5 years ago

krux02 commented 6 years ago

This PR is an overall simplification and optimization of nim-syntax.el. All optimizations are measured with a profiler in a big file to ensure that they actually have a positive impact.

changlog

Especially in nim-format-$-matcher the changes have significant performance. Probably because I replaced the low level lisp logic to check if the current position matching a $N expression with a proper regular expression that naturally has only very few false positives.

pigmej commented 5 years ago

Per info from IRC, The PR is ready. I'm more than happy to merge it, @yuutayamada any objections?

krux02 commented 5 years ago

Is there anything left that I need to do, before this can be merged?

yuutayamada commented 5 years ago

I'll merge this by this weekend if no problem. (I gonna check with Nim 0.19)

krux02 commented 5 years ago

Weekend is almost over by now, what do you say?

yuutayamada commented 5 years ago

Weekend is not over yet in us

On Sun, Sep 30, 2018, 11:02 Arne Döring notifications@github.com wrote:

Weekend is almost over by now, what do you say?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nim-lang/nim-mode/pull/201#issuecomment-425739286, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCEaWX9qfYQMuBv4JxWaMSqA-L1HIggks5ugQdOgaJpZM4WmVYF .

krux02 commented 5 years ago

Well, here it is now officially Monday.

yuutayamada commented 5 years ago

I don't know what you mean. probably I should extend the term to by the Monday then.

On Sun, Sep 30, 2018, 15:06 Arne Döring notifications@github.com wrote:

Well, here it is now officially Monday.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nim-lang/nim-mode/pull/201#issuecomment-425755895, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCEadyQZP5G3OJEfICVEGHFZS07vjM6ks5ugUBLgaJpZM4WmVYF .

yuutayamada commented 5 years ago

@krux02 thank you! I've merge your PR now.

krux02 commented 5 years ago

thanks