Skip to content

[Bug] Auto close double quote after letter "x" #12

@Brookg

Description

@Brookg

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:
before
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"
	}

Result as shown below:
after

By the way, this issue may depend on every one's typing habits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-configRelates to the VSCode language configuration file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions