Skip to content

Commit

Permalink
Fixed typos in comments. No functional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Dec 10, 2014
1 parent dc37f6c commit 6920d3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions addon/doxysearch/doxysearch.cpp
Expand Up @@ -116,7 +116,7 @@ static std::string uriDecode(const std::string & sSrc)
} }


/** return list of strings that result when splitting \a s using /** return list of strings that result when splitting \a s using
* delimeter \a delim * delimiter \a delim
*/ */
static std::vector<std::string> split(const std::string &s, char delim) static std::vector<std::string> split(const std::string &s, char delim)
{ {
Expand All @@ -137,7 +137,7 @@ T fromString(const std::string& s)
return t; return t;
} }


/** Class that holds the startin position of a word */ /** Class that holds the starting position of a word */
struct WordPosition struct WordPosition
{ {
WordPosition(int s,int i) : start(s), index(i) {} WordPosition(int s,int i) : start(s), index(i) {}
Expand Down Expand Up @@ -196,7 +196,7 @@ static bool insideRange(const std::vector<Range> &ranges,int start,int len)
} }


/** Returns a list of text \a fragments from \a s containing one or /** Returns a list of text \a fragments from \a s containing one or
* more \a words. The list is sorted occording to the * more \a words. The list is sorted according to the
* number of occurrences of words within the fragment. * number of occurrences of words within the fragment.
*/ */
static void highlighter(const std::string &s, static void highlighter(const std::string &s,
Expand Down
2 changes: 1 addition & 1 deletion addon/doxywizard/expert.cpp
Expand Up @@ -452,7 +452,7 @@ static QString getDocsForNode(const QDomElement &child)
// LaTeX name as formula -> LaTeX // LaTeX name as formula -> LaTeX
regexp.setPattern(SA("\\\\f\\$\\\\mbox\\{\\\\LaTeX\\}\\\\f\\$")); regexp.setPattern(SA("\\\\f\\$\\\\mbox\\{\\\\LaTeX\\}\\\\f\\$"));
docs.replace(regexp,SA("LaTeX")); docs.replace(regexp,SA("LaTeX"));
// Other forula's (now just 2) so explicitely mentioned. // Other formula's (now just 2) so explicitly mentioned.
regexp.setPattern(SA("\\\\f\\$2\\^\\{\\(16\\+\\\\mbox\\{LOOKUP\\\\_CACHE\\\\_SIZE\\}\\)\\}\\\\f\\$")); regexp.setPattern(SA("\\\\f\\$2\\^\\{\\(16\\+\\\\mbox\\{LOOKUP\\\\_CACHE\\\\_SIZE\\}\\)\\}\\\\f\\$"));
docs.replace(regexp,SA("2^(16+LOOKUP_CACHE_SIZE)")); docs.replace(regexp,SA("2^(16+LOOKUP_CACHE_SIZE)"));
regexp.setPattern(SA("\\\\f\\$2\\^\\{16\\} = 65536\\\\f\\$")); regexp.setPattern(SA("\\\\f\\$2\\^\\{16\\} = 65536\\\\f\\$"));
Expand Down
2 changes: 1 addition & 1 deletion vhdlparser/ErrorHandler.h
Expand Up @@ -31,7 +31,7 @@ JAVACC_SIMPLE_STRING addUnicodeEscapes(JAVACC_STRING_TYPE str);
// Called when the parser cannot continue parsing. // Called when the parser cannot continue parsing.
// last - the last token successfully parsed. // last - the last token successfully parsed.
// unexpected - the token at which the error occurs. // unexpected - the token at which the error occurs.
// production - the production in which this error occurrs. // production - the production in which this error occurs.
virtual void handleParseError(Token * /*last*/, Token *unexpected, JAVACC_SIMPLE_STRING production, VhdlParser * /*parser*/) { virtual void handleParseError(Token * /*last*/, Token *unexpected, JAVACC_SIMPLE_STRING production, VhdlParser * /*parser*/) {
error_count++; error_count++;
fprintf(stderr, "Encountered: %s at: %d:%d while parsing: %s\n", addUnicodeEscapes(unexpected->image).c_str(), unexpected->beginLine, unexpected->beginColumn, production.c_str()); fprintf(stderr, "Encountered: %s at: %d:%d while parsing: %s\n", addUnicodeEscapes(unexpected->image).c_str(), unexpected->beginLine, unexpected->beginColumn, production.c_str());
Expand Down

0 comments on commit 6920d3e

Please sign in to comment.