Firacode: <= rendered as "less than or equal" in Verilog & VHDL

Created on 9 Oct 2019  路  6Comments  路  Source: tonsky/FiraCode

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.

conflict stylistic sets

Most helpful comment

Will be in v6 as cv20-cv22

All 6 comments

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

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?

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

@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.

Will be in v6 as cv20-cv22

In case someone reaches here via search, this can be used to disable ligatures for Verilog and VHDL in VSCode till we get v6: https://github.com/microsoft/vscode/issues/43440#issuecomment-527405415

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magnus-madsen picture magnus-madsen  路  3Comments

miniBill picture miniBill  路  4Comments

Igorgro picture Igorgro  路  3Comments

ulope picture ulope  路  4Comments

tomByrer picture tomByrer  路  4Comments