Code Monkey home page Code Monkey logo

Comments (6)

immerrr avatar immerrr commented on June 10, 2024

Thanks for the report. I'll try to see to it over the weekend.

Meanwhile, could you write your versions of emacs & lua-mode?

UPD: reproduced it, will see what I can do.

from lua-mode.

coryrc avatar coryrc commented on June 10, 2024

Emacs 24.1.1
Lua-mode is "current development mode snapshot" https://github.com/immerrr/lua-mode/zipball/master

Thanks, I looked into figuring out what was going on, but I couldn't figure out how to get emacs to stop and give me a backtrace. Best of luck!
Thanks,
Cory

from lua-mode.

immerrr avatar immerrr commented on June 10, 2024

Given how fast the input processing time increases, I'd say it's O(N!) caused by a poorly written regexp.

from lua-mode.

immerrr avatar immerrr commented on June 10, 2024

This looks like the offender: https://github.com/immerrr/lua-mode/blob/master/lua-mode.el#L434

You can comment this regexp out for now for a quick fix, but I haven't yet figured out how to fix that properly.

from lua-mode.

immerrr avatar immerrr commented on June 10, 2024

Sorry about two commits, I was too hasty to push the changes, didn't pay attention to commit message. Please, try, if the fix works for you.

It's fascinating for how long had this regexp lived given how bad it was :)

from lua-mode.

coryrc avatar coryrc commented on June 10, 2024

Awesome, thanks for the fix! I confirmed it is fixed.

from lua-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.