Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added randcase for indent #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gogulfresh
Copy link

Indent works but matchit doesn't recognize randcase/endcase

p.s.: this is the first time that I create a pull request, be easy with me if I did smth wrong :)

@@ -45,7 +45,7 @@ let s:vlog_property = '\(\(assert\|assume\|cover\)\s\+\)\@<!\<property\>'
let s:vlog_sequence = '\<sequence\>'
let s:vlog_preproc = '^\s*`ifn\?def\>'

let s:vlog_case = '\<case[zx]\?\>\s*('
let s:vlog_case = '\<\(case[zx]\?\>\s*(\|randcase\>\)'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that what you want here is:

let s:vlog_case           = '\<\(rand\)\?case[zx]\?\>\s*('

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, randcase has no "(selector)"
Syntax is:

randcase
1: x=4
1: x=5
endcase

I will take a look at the make file

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have checked the syntax first... :)

@vhda
Copy link
Owner

vhda commented Nov 28, 2017

Automatic tests are failing and looking at your change I don't think it does what you want.
Please try the suggestion I made. You can run the tests on your side by running make.

@vhda
Copy link
Owner

vhda commented Nov 28, 2017

Just noticed your problem is with matchit. This is the file you're looking for https://github.com/vhda/verilog_systemverilog.vim/blob/master/ftplugin/verilog_systemverilog.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants