Editor does not select tokens properly and block mode error at semicolon

Try typing this line out in five columns

this_is_five_new_signals <= some_assignment_as_well;

   this_is_five_new_signals <= some_assignment_as_well;
   this_is_five_new_signals <= some_assignment_as_wel:=;
   this_is_five_new_signals <= some_assignment_as_well;;
   this_is_five_new_signals <= some_assignment_as_wel:=;
   this_is_five_new_signals <= some_assignment_as_well;

When you get to the semicolon you can see that it freaks out for some reason and adds the variable assignment operator.

Also, the use statements at the top of a file. Normally an editor will have each token separated by the period.

Library floatfixlib;
use floatfixlib.math_utility_pkg.all;
use floatfixlib.fixed_pkg.all;

When you try and select just the fixed_pkg portion it gives you the entire line, but the tool doesn't allow you to open declaration based on the entire line.

Stuttering

You have found one of the features we have introduced last month: stuttering.

If you press the semicolon (;) twice, the VHDL editor replaces it with a variable assignment symbol (:=). You have to press the button fast, like a double click on your mouse.

Similar behavior is available for period (.) and comma (,) which result in left arrows (<=) and right arrows (=>) respectively.

The stuttering feature was requested by many ex-Emacs users, who use it to type their VHDL code faster.

My guess is that you have made a typo (pressed semicolon twice), and were surprised by the result.

Hope this helps

Philippe

Stuttering

I've noticed that our stuttering feature has an unwanted side effect: If you press SEMICOLON, DOWN, SEMICOLON, stuttering is activated. This is not desirable.

This can happen if you add your semicolons to several lines of code that need extra semicolons.

I've marked this as ticket:862.

ticket:862 was fixed in

ticket:862 was fixed in August 2010

Double-click for select

Hi Michael,

You have noticed that double-clicking does not select the appropriate text. I will look into this (ticket:853).

As a workaround for selecting tokens, you can use the traditional methods for selecting text (dragging the mouse or holding the shift key).

If you just want to jump to the declaration, there is no need to select the entire word. You can put your cursor anywhere in the name and press F3 (or right click and select Open Declaration).

Philippe

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.