Skip to content

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 :)

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