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
60abada8
Commit
60abada8
authored
Dec 19, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 740218 - Full scope needed when making link inside cross-referenced section (fixed regression)
parent
b3c44e52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
doctokenizer.l
src/doctokenizer.l
+23
-0
util.cpp
src/util.cpp
+1
-1
No files found.
src/doctokenizer.l
View file @
60abada8
...
@@ -49,6 +49,7 @@ static int g_inputPos = 0;
...
@@ -49,6 +49,7 @@ static int g_inputPos = 0;
static const char *g_inputString;
static const char *g_inputString;
static QCString g_fileName;
static QCString g_fileName;
static bool g_insidePre;
static bool g_insidePre;
static int g_sharpCount=0;
// context for section finding phase
// context for section finding phase
static Definition *g_definition;
static Definition *g_definition;
...
@@ -437,6 +438,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
...
@@ -437,6 +438,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
%x St_Anchor
%x St_Anchor
%x St_Snippet
%x St_Snippet
%x St_SetScope
%x St_SetScope
%x St_SetScopeEnd
%x St_Sections
%x St_Sections
%s St_SecLabel1
%s St_SecLabel1
...
@@ -1018,8 +1020,29 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
...
@@ -1018,8 +1020,29 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
g_token->name = g_token->name.stripWhiteSpace();
g_token->name = g_token->name.stripWhiteSpace();
return TK_WORD;
return TK_WORD;
}
}
<St_SetScope>{SCOPEMASK}"<" {
g_token->name = yytext;
g_token->name = g_token->name.stripWhiteSpace();
g_sharpCount=1;
BEGIN(St_SetScopeEnd);
}
<St_SetScope>{BLANK} {
<St_SetScope>{BLANK} {
}
}
<St_SetScopeEnd>"<" {
g_token->name += yytext;
g_sharpCount++;
}
<St_SetScopeEnd>">" {
g_token->name += yytext;
g_sharpCount--;
if (g_sharpCount<=0)
{
return TK_WORD;
}
}
<St_SetScopeEnd>. {
g_token->name += yytext;
}
<St_Ref2>"&"{ID}";" { /* symbol */
<St_Ref2>"&"{ID}";" { /* symbol */
g_token->name = yytext;
g_token->name = yytext;
return TK_SYMBOL;
return TK_SYMBOL;
...
...
src/util.cpp
View file @
60abada8
...
@@ -6288,7 +6288,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
...
@@ -6288,7 +6288,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
{
{
// append documentation block to the page.
// append documentation block to the page.
pd
->
setDocumentation
(
doc
,
fileName
,
startLine
);
pd
->
setDocumentation
(
doc
,
fileName
,
startLine
);
//printf("Adding page docs `%s' pi=%p name=%s\n",doc.data(),p
i
,name);
//printf("Adding page docs `%s' pi=%p name=%s\n",doc.data(),p
d
,name);
}
}
else
// new page
else
// new page
{
{
...
...
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