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

Regex not working for end of line comment characters #150

Closed
SethGower opened this issue Jun 23, 2021 · 1 comment
Closed

Regex not working for end of line comment characters #150

SethGower opened this issue Jun 23, 2021 · 1 comment

Comments

@SethGower
Copy link

Hello, I apologize if this is because I am using the wrong regex for this, I am not great with regex. I am trying to align the -- or --! characters in a chunk of lines like this

s_1 <= '1'; -- some comment
s_long_sig_name <= "100000"; -- I want this aligned

to this

s_1 <= '1';      -- some comment
s_2 <= "100000"; -- I want this aligned

And this

    i_a : in std_logic; --! Signal A
    i_b : in std_logic_vector; --! Signal B

to this

    i_a : in std_logic;        --! Signal A
    i_b : in std_logic_vector; --! Signal B

I have tried selecting the lines, and then running easy align (with ga in Visual Mode) and then for regex with the patter -- and --! and those don't work. I have done .*-- which yields

           i_a : in std_logic; -- ! Signal A
    i_b : in std_logic_vector; -- ! Signal B

Am I missing something?

@hberge
Copy link

hberge commented Sep 18, 2024

It doesn't work because the default behavior is to ignore comments. See #142

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