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

Last port of module rendered red #14

Open
fenhl opened this issue Jun 12, 2016 · 1 comment
Open

Last port of module rendered red #14

fenhl opened this issue Jun 12, 2016 · 1 comment

Comments

@fenhl
Copy link

fenhl commented Jun 12, 2016

When the closing paren is on its own line, the last port of a module declaration is highlighted in red:

module Id(
    input in,
    output out
);
    assign out = in;
endmodule

As you can see, github has the same bug, except it uses green instead of red.

@emroch
Copy link

emroch commented May 24, 2018

This happens only in the case of the last line being "output <port_name>" with no other (non-whitespace) characters on the line. If you add a comment, a range, or a second port name, the highlighting is correct. In the below examples, the first one is rendered wrong (red), while the other three are rendered correctly.

module sync (
    input clk, d,
    output q
  );
endmodule

module sync (
    input clk, d,
    output q        //
  );
endmodule

module sync (
    input clk, d,
    output [1:0] q
  );
endmodule

module sync (
    input clk, d,
    output q, p
  );
endmodule

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

No branches or pull requests

2 participants