Menu

#325 shows syntax error when '\' is used in identifer

v1.0_(example)
closed-fixed
nobody
None
5
2014-07-06
2014-07-02
No

I get syntax error when '\' is used in identifiers.

Example:


module \1ff (); // <- '\' used in module name gives syntax error
endmodule


module tb;

wire a;
wire \1w ; // <- this is ok

wire [1:0]\2w ; // <- shows syntax error
wire [2:0] \3w ; // <- shows syntax error

assign a = \1w ; // <- shows syntax error

pullup r1 (\1w ); // <- shows syntax error 

endmodule

Discussion

  • Matthew Ballance

    • status: open --> closed-fixed
     
  • Matthew Ballance

    Thanks for the testcase! After some investigation, it looks like SVEditor's support for escaped identifiers had never been tested. I corrected a couple of small bugs, and your testcase now runs correctly. This fix will be in the 1.5.7 release.

    Thanks,
    Matthew

     

Log in to post a comment.

MongoDB Logo MongoDB