From 9848c465f740547b5bd59e963a2bec8efc47fc4a Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 30 Jan 2019 13:37:35 +0100 Subject: Inline VHDL code Based on the example of #6805 - First line of inline documentation didn't have a line number - The line numbers in inline documentation were off by one --- src/vhdlcode.l | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vhdlcode.l b/src/vhdlcode.l index aa15183..2c5469e 100644 --- a/src/vhdlcode.l +++ b/src/vhdlcode.l @@ -1554,7 +1554,6 @@ void parseVhdlCode(CodeOutputInterface &od,const char *className,const QCString { ClassDef *dd=memberDef->getClassDef(); if (dd) g_CurrClass=dd->name(); - startLine--; } resetVhdlCodeParserState(); g_code = &od; @@ -1599,10 +1598,7 @@ void parseVhdlCode(CodeOutputInterface &od,const char *className,const QCString g_exampleFile = convertNameToFile(g_exampleName+"-example"); } g_includeCodeFragment = inlineFragment; - if (!memberDef) - { - startCodeLine(); - } + startCodeLine(); // g_type.resize(0); // g_name.resize(0); // g_args.resize(0); -- cgit v0.12