summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-11-18 14:00:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-11-18 14:23:28 (GMT)
commitf0cc0f5da51faddd490c2cf358614b4ab70cc8ac (patch)
treed88c647365010677b4c4f6353e0e03e0daea6f33 /src/scanner.l
parent8ff99363c2f6b3226fe5b57f38ae1d4805dca22c (diff)
downloadDoxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.zip
Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.gz
Doxygen-f0cc0f5da51faddd490c2cf358614b4ab70cc8ac.tar.bz2
Minor restructuring
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 1642fec..a0b4e83 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -6414,64 +6414,64 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
/* ---- Slice-specific rules ------ */
-<SliceSequence>{SCOPENAME} {
- if (current->spec&Entry::Local)
- {
- current->type = "local ";
- }
- current->type += "sequence<";
- current->type += yytext;
- current->type += ">";
+<SliceSequence>{SCOPENAME} {
+ if (current->spec&Entry::Local)
+ {
+ current->type = "local ";
+ }
+ current->type += "sequence<";
+ current->type += yytext;
+ current->type += ">";
}
<SliceSequence>{BN}*">"{BN}* {
- lineCount();
- BEGIN(SliceSequenceName);
+ lineCount();
+ BEGIN(SliceSequenceName);
}
<SliceSequenceName>{ID}{BN}* {
- lineCount();
- current->name = yytext ;
- current->name = current->name.stripWhiteSpace();
+ lineCount();
+ current->name = yytext ;
+ current->name = current->name.stripWhiteSpace();
}
<SliceSequenceName>";" {
- current->section = Entry::VARIABLE_SEC;
- current_root->addSubEntry(current);
- current = new Entry;
- initEntry();
- BEGIN(FindMembers);
+ current->section = Entry::VARIABLE_SEC;
+ current_root->addSubEntry(current);
+ current = new Entry;
+ initEntry();
+ BEGIN(FindMembers);
}
<SliceDictionary>{SCOPENAME}{BN}*","{BN}*{SCOPENAME} {
- lineCount();
- if (current->spec&Entry::Local)
- {
- current->type = "local ";
- }
- current->type += "dictionary<";
- current->type += yytext;
- current->type += ">";
- current->type = current->type.simplifyWhiteSpace();
+ lineCount();
+ if (current->spec&Entry::Local)
+ {
+ current->type = "local ";
+ }
+ current->type += "dictionary<";
+ current->type += yytext;
+ current->type += ">";
+ current->type = current->type.simplifyWhiteSpace();
}
<SliceDictionary>{BN}*">"{BN}* {
- lineCount();
- BEGIN(SliceDictionaryName);
+ lineCount();
+ BEGIN(SliceDictionaryName);
}
<SliceDictionaryName>{ID}{BN}* {
- lineCount();
- current->name = yytext ;
- current->name = current->name.stripWhiteSpace();
+ lineCount();
+ current->name = yytext ;
+ current->name = current->name.stripWhiteSpace();
}
<SliceDictionaryName>";" {
- current->section = Entry::VARIABLE_SEC;
- current_root->addSubEntry(current);
- current = new Entry;
- initEntry();
- BEGIN(FindMembers);
+ current->section = Entry::VARIABLE_SEC;
+ current_root->addSubEntry(current);
+ current = new Entry;
+ initEntry();
+ BEGIN(FindMembers);
}
/**********************************************************************************/