Open Paebbels opened 7 years ago
Hi, there is also this other issue, but I think is the same: https://github.com/tgingold/ghdl/issues/369
Regards, Vicenç.
The behavior of these two highlight issues stem from an identical cause. Neither subclass of subprogram {function, procedure} is expecting an end
statement for highlighting purposes as a first string on a line. It's a dependency on style that neither the function specifications (Issue 395 at tgingold/ghdl) nor the procedure specifications (tgingold/ghdl#369) adhere to, noting that style has nothing to do with valid syntax in VHDL.
Also note that you only need to have the end
for the last function or procedure specification appear as the first string on a line to satisfy the following construct (architecture for #369, process for #365). The facility implied here is of limited usefulness demonstrated by the inability to parse the end of constructs without relying on style for boundaries.
While an impressive effort, overkill for Github comments and otherwise style limited for editor use.
I reported a broken syntax highlighting on GitHub to the GitHub support. They redirected me to linguist and they in turn redirected me to this project.
Here is the conversation in chronological order: