-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
language-configRelates to the VSCode language configuration fileRelates to the VSCode language configuration file
Description
OS Version: Windows 10 1809
VS Code Version: 1.33.1
Extension Version: 0.0.7
First of all, thank you for your job.
Suppose there is a signal, whose type is std_logic_vector:
signal a : std_logic_vector (15 downto 0);
Then I want to assign a constant value x"1234" to it:
a <= x"1234";
Sorry for my English. So I attach a gif:

As show before, the double quote after letter x is not auto closed.
My suggestion is add following snippet:
(snippets/vhdl.yml)
hex_std_logic_vector:
prefix: x"
description: x"nnnn"
scope: source.vhdl
body: "x\"$1\"$0"
(snippets/vhdl.json)
"hex_std_logic_vector": {
"prefix": "x\"",
"description": "x\"nnnn\"",
"scope": "source.vhdl",
"body": "x\"$1\"$0"
}
By the way, this issue may depend on every one's typing habits.
Metadata
Metadata
Assignees
Labels
language-configRelates to the VSCode language configuration fileRelates to the VSCode language configuration file
