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

Beautify throws exception when encountering single line procedure parameters #155

Open
Remillard opened this issue Feb 10, 2020 · 0 comments

Comments

@Remillard
Copy link
Owner

Something like:

procedure check_val (expected : in std_logic_vector; actual : in std_logic_vector; file out_stream : text; debug : in boolean := TRUE ) is

will throw an exception the SECOND time it's encountered in a file.

Example:

93: ci=1 ni=1 : procedure check_val (expected : in std_logic_vector; actual : in std_logic_vector; file out_stream : text; debug : in boolean := TRUE ) is
93: Evaluation line: procedure check_val (expected : in std_logic_vector; actual : in std_logic_vector; file out_stream : text; debug : in boolean := TRUE ) is
93: Evaluation pattern: ^(?<!end )\bprocedure\b
93: Type: procedure
93: Ignore Rules: ['block-comment']
93: Parens After Scan #(=0, #)=0, OPos=[], CPos=[]
93: Closing stack depth=1 top=procedure indent=1 parens=#(=0, #)=0, OPos=[], CPos=[]
93: Evaluation line: procedure check_val (expected : in std_logic_vector; actual : in std_logic_vector; file out_stream : text; debug : in boolean := TRUE ) is
93: Evaluation pattern: ;
93: Found closing match to procedure
93: Using solo line rule.
93: Close is not alone on this line.
93: Evaluation line: procedure check_val (expected : in std_logic_vector; actual : in std_logic_vector; file out_stream : text; debug : in boolean := TRUE ) is
93: Evaluation pattern: \bis\b
93: Found closing match to procedure
93: Continuation found.  Re-evaluating for function_is
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1088, in run_
    return self.run(edit)
  File "C:\Users\mark.norton\AppData\Roaming\Sublime Text 3\Packages\VHDL Mode\vhdl_mode.py", line 247, in run
    cb.indent_vhdl(0, tab_size, use_spaces)
  File "C:\Users\mark.norton\AppData\Roaming\Sublime Text 3\Packages\VHDL Mode\vhdl_lang.py", line 524, in indent_vhdl
    closing_stack.popleft()
IndexError: pop from an empty deque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant