Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
e2597756
Commit
e2597756
authored
Aug 06, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 705586 - @code tag as the last line of a comment block causes the parser to hang
parent
69af1c8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
markdown.cpp
src/markdown.cpp
+2
-5
No files found.
src/markdown.cpp
View file @
e2597756
...
...
@@ -1831,10 +1831,11 @@ static void findEndOfLine(GrowBuf &out,const char *data,int size,
)
{
QCString
endBlockName
=
isBlockCommand
(
data
+
end
-
1
,
end
-
1
,
size
-
(
end
-
1
));
end
++
;
if
(
!
endBlockName
.
isEmpty
())
{
int
l
=
endBlockName
.
length
();
for
(;
end
<
size
-
l
;
end
++
)
// search for end of block marker
for
(;
end
<
size
-
l
-
1
;
end
++
)
// search for end of block marker
{
if
((
data
[
end
]
==
'\\'
||
data
[
end
]
==
'@'
)
&&
data
[
end
-
1
]
!=
'\\'
&&
data
[
end
-
1
]
!=
'@'
...
...
@@ -1858,10 +1859,6 @@ static void findEndOfLine(GrowBuf &out,const char *data,int size,
}
}
}
else
{
end
++
;
}
}
else
if
(
nb
==
0
&&
data
[
end
-
1
]
==
'<'
&&
end
<
size
-
6
&&
(
end
<=
1
||
(
data
[
end
-
2
]
!=
'\\'
&&
data
[
end
-
2
]
!=
'@'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment