I have a word which is either a keyword or an attribute the difference between the two case is if the word is preceded by a space it's a keyword, if it is preceded by a ' its an attribute.
Does some one know how to make the syntax highlight to correctly handle this case?
- Code: Select all
variable t : integer range 0 to 127; -- range is a keyword
variable s : std_logic_vector(sign'range); -- range is an attribute