g2384 / VHDLFormatter

VHDL formatter web online written in typescript
https://g2384.github.io/VHDLFormatter/
MIT License
51 stars 20 forks source link

constant definition #37

Closed gasrodriguez closed 3 years ago

gasrodriguez commented 3 years ago

Report a bug

Using the live demo with default settings (and others) I'm seeing weird things with this constant definition:

  1. first line is removed completely
  2. tabulation inside parenthesis is not right (all is aligned to the line start)

Input

Snippet:

  constant ADDR_MATCH : std_logic_vector(5*32-1 downto 0) := (
  X"00000000" & 
  X"00010000" & 
  X"00020000" & 
  X"00030000" & 
  X"00040000"
  );

Settings:

{
    "RemoveComments": false,
    "RemoveAsserts": false,
    "CheckAlias": false,
    "SignAlignSettings": {
        "isRegional": true,
        "isAll": false,
        "mode": "local",
        "keyWords": [
            "FUNCTION",
            "IMPURE FUNCTION",
            "GENERIC",
            "PORT",
            "PROCEDURE"
        ]
    },
    "KeywordCase": "LowerCase",
    "TypeNameCase": "LowerCase",
    "Indentation": "\t",
    "NewLineSettings": {
        "newLineAfter": [
            "generic",
            "generic map",
            "port",
            "port map",
            ";",
            "then",
            "else"
        ],
        "noNewLineAfter": []
    },
    "EndOfLine": "\r\n"
}

Expected Behavior

  constant ADDR_MATCH : std_logic_vector(5*32-1 downto 0) := (
    X"00000000" & 
    X"00010000" & 
    X"00020000" & 
    X"00030000" & 
    X"00040000"
  );

Actual Behavior

X"00000000" &
X"00010000" &
X"00020000" &
X"00030000" &
X"00040000"
);
g2384 commented 3 years ago

it has been fixed now. The expected behavior is achieved. Thanks for the feedback.