Coder Social home page Coder Social logo

Comments (3)

netvolcano avatar netvolcano commented on June 3, 2024

verilog plugin

from verilog_systemverilog.vim.

vhda avatar vhda commented on June 3, 2024

The current implementation of the indentation script focuses on correctness of indentation, which would become broken with such limit.
This limit can be implemented, but first I'd like to better understand your scenario to make sure there are no alternatives.
What are you doing when this slowness occurs? Are you indenting the complete file, or simply starting a new line?
In case of the latter, would it be possible to show the immediate context before this new line? I understand you will not be able to share the 2k lines file, but I'd like to understand if there's something we could use to obtain an indentation value faster.
Thanks!

from verilog_systemverilog.vim.

netvolcano avatar netvolcano commented on June 3, 2024

When I opened a verilog file with more than 2 thousands of interface signals, I wanted to insert a new line to add a new signal, Vim would waiting long time to response (it seemed to scan too many lines to determine the correct context). I tried to add a limit to constrain the max scan lines to speed this. I think you can add a global variable to implement this (i.e. It is better to record the current context into a variable. When reached the max scaned line number but cannot determine the context, you can use the recorded context instead).

from verilog_systemverilog.vim.

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.