Skip to content

Commit

Permalink
Merge branch 'master' of github.com:doxygen/doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Aug 21, 2016
2 parents 478c147 + b24d9db commit cd6a8d3
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 17 deletions.
3 changes: 3 additions & 0 deletions doc/starting.doc
Expand Up @@ -126,6 +126,9 @@ Extension | Language
.f |Fortran
.for |Fortran
.f90 |Fortran
.f95 |Fortran
.f03 |Fortran
.f08 |Fortran
.vhd |VHDL
.vhdl |VHDL
.tcl |TCL
Expand Down
3 changes: 3 additions & 0 deletions src/config.xml
Expand Up @@ -1337,6 +1337,9 @@ FILE_VERSION_INFO = "cleartool desc -fmt \%Vn"
<value name='*.py'/>
<value name='*.pyw'/>
<value name='*.f90'/>
<value name='*.f95'/>
<value name='*.f03'/>
<value name='*.f08'/>
<value name='*.f'/>
<value name='*.for'/>
<value name='*.tcl'/>
Expand Down
38 changes: 23 additions & 15 deletions src/docparser.cpp
Expand Up @@ -1264,9 +1264,6 @@ static void defaultHandleTitleAndSize(const int cmd, DocNode *parent, QList<DocN
if (tok==TK_WORD && (g_token->name=="width=" || g_token->name=="height="))
{
// special case: no title, but we do have a size indicator
doctokenizerYYsetStateTitleAttrValue();
// strip =
g_token->name = g_token->name.left(g_token->name.length()-1);
break;
}
if (!defaultHandleToken(parent,tok,children))
Expand All @@ -1293,21 +1290,32 @@ static void defaultHandleTitleAndSize(const int cmd, DocNode *parent, QList<DocN
{
tok=doctokenizerYYlex();
}
while (tok==TK_WORD) // there are values following the title
while (tok==TK_WHITESPACE || tok==TK_WORD) // there are values following the title
{
if (g_token->name=="width")
if(tok == TK_WORD)
{
width = g_token->chars;
}
else if (g_token->name=="height")
{
height = g_token->chars;
}
else
{
warn_doc_error(g_fileName,doctokenizerYYlineno,"Unknown option '%s' after \\%s command, expected 'width' or 'height'",
qPrint(g_token->name), Mappers::cmdMapper->find(cmd).data());
if (g_token->name=="width=" || g_token->name=="height=")
{
doctokenizerYYsetStateTitleAttrValue();
g_token->name = g_token->name.left(g_token->name.length()-1);
}

if (g_token->name=="width")
{
width = g_token->chars;
}
else if (g_token->name=="height")
{
height = g_token->chars;
}
else
{
warn_doc_error(g_fileName,doctokenizerYYlineno,"Unknown option '%s' after \\%s command, expected 'width' or 'height'",
qPrint(g_token->name), Mappers::cmdMapper->find(cmd).data());
break;
}
}

tok=doctokenizerYYlex();
}
doctokenizerYYsetStatePara();
Expand Down
17 changes: 16 additions & 1 deletion src/fortrancode.l
Expand Up @@ -925,7 +925,12 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
startScope();
generateLink(*g_code,yytext);
}
<Subprog>"(".* { // ignore rest of line
<Subprog>"result"/{BS}"("[^)]*")" {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}
<Subprog>"("[^)]*")" { // ignore rest of line
codifyLines(yytext);
}
<Subprog,Subprogend>"\n" { codifyLines(yytext);
Expand Down Expand Up @@ -1123,6 +1128,16 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
codifyLines(yytext);
endFontClass();
}
<*>"assignment"/{BS}"("{BS}"="{BS}")" {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}
<*>"operator"/{BS}"("[^)]*")" {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}

/*------ preprocessor --------------------------------------------*/
<Start>"#".*\n {
Expand Down
3 changes: 3 additions & 0 deletions src/util.cpp
Expand Up @@ -7132,6 +7132,9 @@ void initDefaultExtensionMapping()
updateLanguageMapping(".f", "fortran");
updateLanguageMapping(".for", "fortran");
updateLanguageMapping(".f90", "fortran");
updateLanguageMapping(".f95", "fortran");
updateLanguageMapping(".f03", "fortran");
updateLanguageMapping(".f08", "fortran");
updateLanguageMapping(".vhd", "vhdl");
updateLanguageMapping(".vhdl", "vhdl");
updateLanguageMapping(".tcl", "tcl");
Expand Down
2 changes: 1 addition & 1 deletion templates/html/navtree.css
Expand Up @@ -96,7 +96,7 @@
.ui-resizable-e {
background-image:url("splitbar.png");
background-size:100%;
background-repeat:no-repeat
background-repeat:no-repeat;
background-attachment: scroll;
cursor:ew-resize;
height:100%;
Expand Down

0 comments on commit cd6a8d3

Please sign in to comment.