Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<= rendered as "less than or equal" in Verilog & VHDL #858

Closed
qrqiuren opened this issue Oct 9, 2019 · 7 comments
Closed

<= rendered as "less than or equal" in Verilog & VHDL #858

qrqiuren opened this issue Oct 9, 2019 · 7 comments

Comments

@qrqiuren
Copy link
Contributor

qrqiuren commented Oct 9, 2019

In Verilog and VHDL, <= is a symbol of assignment. For example:

always @ (posedge clk or negedge xrstn)
begin
	if(!xrstn)
	begin
		sum_d <= 0;
	end
	else
	begin
		sum_d <= sum;
	end
end

However, in Fira Code, the assignment symbol <= is rendered as a "less than or equal to" sign.

Verilog example

I hope there could be a stylistic option of rendering it.

@qrqiuren qrqiuren changed the title <= rendered as "greater than or equal" in Verilog & VHDL <= rendered as "less than or equal" in Verilog & VHDL Oct 9, 2019
@tonsky
Copy link
Owner

tonsky commented Oct 9, 2019

Yes. Same in Erlang. Will make in a stylistic set. Thanks!

@qrqiuren
Copy link
Contributor Author

qrqiuren commented Oct 9, 2019

I found it has been mentioned in #696

<= in both VHDL and Verilog/SystemVerilog has 2 meanings: 1. less than or equal 2. non-blocking assignment. It seems to be quite difficult for font designers to decide the ligature on the context.

Maybe we can develop a plugin for editors to render different ligatures by the context in each programming language?

@bkDJ
Copy link

bkDJ commented Nov 25, 2019

@qrqiuren The latest VS Code supports ligature stylistic sets globally and on a per-language basis.

@qrqiuren
Copy link
Contributor Author

qrqiuren commented Dec 2, 2019

@qrqiuren The latest VS Code supports ligature stylistic sets globally and on a per-language basis.

Thank you. I already disabled ligatures for Verilog. Actually, it was me to submit the feature request of stylistic set support in VS Code.

@tonsky tonsky added this to the 6 milestone Oct 8, 2020
@tonsky
Copy link
Owner

tonsky commented Oct 10, 2020

Will be in v6 as cv20-cv22

@tonsky tonsky closed this as completed Oct 10, 2020
@shivampotdar
Copy link

In case someone reaches here via search, this can be used to disable ligatures for Verilog and VHDL in VSCode till we get v6: microsoft/vscode#43440 (comment)

@siddhpant
Copy link

siddhpant commented Jul 14, 2023

<= in both VHDL and Verilog/SystemVerilog has 2 meanings: 1. less than or equal 2. non-blocking assignment. It seems to be quite difficult for font designers to decide the ligature on the context.

Maybe we can develop a plugin for editors to render different ligatures by the context in each programming language?

It seems iosevka has verilog set which features both variants: https://github.com/be5invis/Iosevka/blob/main/doc/language-specific-ligation-sets.md (search for VRLG). Didn't try it though. But it seems to be possible.

Edit: Since release 21 (SVG as on release commits: 20, 21).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants