Coder Social home page Coder Social logo

Comments (8)

vhda avatar vhda commented on June 11, 2024 1

@tnguyen-tx did @netvolcano solution work for you?

from verilog_systemverilog.vim.

netvolcano avatar netvolcano commented on June 11, 2024 1

You need to modify the below statement in the verilog_systemverilog.vim file in the syntax directory (I think it is the root for your error messages):
# syn keyword verilogStatement begin end
syn keyword verilogStatement begin end
image

from verilog_systemverilog.vim.

vhda avatar vhda commented on June 11, 2024

I can't find a way of disabling this highlight on my side, as it is.
I've looked at some of those rainbow plugins and some have an "after" option that could be used to overcome this. Could you give it a try?

from verilog_systemverilog.vim.

netvolcano avatar netvolcano commented on June 11, 2024

Try to add the following lines into you rainbow setting (i.e. put them into let s:rainbow_conf = {...} )

\    'verilog_systemverilog': {
\        'parentheses': [
\              'start=/(/ end=/)/ fold',
\              'start=/\[/ end=/\]/ fold',
\              'start=/{/ end=/}/ fold',
\              'start=/\<begin\>/ end=/\<end\>/',
\         ],
\        'after': [
\              'syn clear verilogBeginEnd',
\              'syn match verilogOperator "[&|~><!*#%@+/=?:;}{,.\^\-\[\]]" ',
\              'syn region verilogComment start="/\*" end="\*/" contains=verilogTodo,@Spell ',
\              'syn match  verilogComment "//.*" contains=verilogTodo,@Spell ',
\           ],
\    },

from verilog_systemverilog.vim.

netvolcano avatar netvolcano commented on June 11, 2024

Snipaste_2023-05-11_10-02-13

With my setting in the rainbow plugin.

from verilog_systemverilog.vim.

real-bird-kun avatar real-bird-kun commented on June 11, 2024

Try to add the following lines into you rainbow setting (i.e. put them into let s:rainbow_conf = {...} )

\    'verilog_systemverilog': {
\        'parentheses': [
\              'start=/(/ end=/)/ fold',
\              'start=/\[/ end=/\]/ fold',
\              'start=/{/ end=/}/ fold',
\              'start=/\<begin\>/ end=/\<end\>/',
\         ],
\        'after': [
\              'syn clear verilogBeginEnd',
\              'syn match verilogOperator "[&|~><!*#%@+/=?:;}{,.\^\-\[\]]" ',
\              'syn region verilogComment start="/\*" end="\*/" contains=verilogTodo,@Spell ',
\              'syn match  verilogComment "//.*" contains=verilogTodo,@Spell ',
\           ],
\    },

Hi~ I am trying to use your solution, but it doesn't work for me. The error info is in the following picture. Would you please help me figure it out?
image

My configuration is:
image

Thank your for your help in advance :)

from verilog_systemverilog.vim.

netvolcano avatar netvolcano commented on June 11, 2024

Have you installed the the verilog syntax plugin as below?
Plugin 'vhda/verilog_systemverilog.vim'

If it will not take effects after you installed the plugin, you need delete a line of "syn keyword verilogLabel begin end fork join" from the verilog_systemverilog.vim file in the syntax directory.

from verilog_systemverilog.vim.

real-bird-kun avatar real-bird-kun commented on June 11, 2024

You need to modify the below statement in the verilog_systemverilog.vim file in the syntax directory (I think it is the root for your error messages): # syn keyword verilogStatement begin end syn keyword verilogStatement begin end image

Cool, you're totally right. It works. Thanks a lot.
I am wondering how your vimrc looks like, because I think you must have a lot great config for writing veirlog/sv efficiently.
Anyway, thank you for your help in time :)

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.