Author Topic: SV - begin  (Read 1028 times)

warnerrs

  • Senior Community Member
  • Posts: 114
  • Hero Points: 4
SV - begin
« on: October 22, 2015, 06:56:48 pm »
In SV mode, V20 won't let you have a "begin" keyword on a line by itself. Typing "b - e - g - i - n - <space>" causes begin to get sucked back on the the previous line.

Try typing this:

Code: [Select]
module top();
    initial begin
        do_something;
        begin
            do_something_else;
        end
    end
endmodule

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1000
  • Hero Points: 84
Re: SV - begin
« Reply #1 on: October 22, 2015, 08:06:39 pm »
Reproduced it, it's really only supposed to try to follow the brace style for control and loop statements, and for top level constructs like initial.  Not for a standalone begin .. end block like that.  I'll take a look at it.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1000
  • Hero Points: 84
Re: SV - begin
« Reply #2 on: October 23, 2015, 03:41:57 pm »
Fixed. 

    Technically, it was also supposed to not be doing those aggressive moves on the 'begin' keyword unless the 'Beautify while typing' setting was enabled.  Fixed that as well.