Remillard / VHDL-Mode

A package for Sublime Text that aids coding in the VHDL language.
MIT License
40 stars 10 forks source link

Syntax Priority Error #38

Closed Remillard closed 7 years ago

Remillard commented 7 years ago

Example: Using an identifier named 'width' as a subprogram parameter will cause it to be scoped as:

vhdl-mode: source.vhdl meta.block.package.body.vhdl meta.block.function.specification.vhdl meta.group.interface.vhdl support.type.textio.vhdl 

Since it gets scoped this way, the text past it gets marked as invalid.illegal.identifier.vhdl

Remillard commented 7 years ago

The type in question is width and it's a subtype in the textio package. I have types in the prototype so they get matched before many other things. For the moment I removed the width type here figuring it is very uncommonly used as a type, and frequently used as an identifier. I did comment the syntax file to remind myself there may be hell to pay later in life on this one.

Remillard commented 7 years ago

Workaround noted above included in Version 1.4.0 release.