diff options
Diffstat (limited to 'lexers/LexMarkdown.cxx')
-rw-r--r-- | lexers/LexMarkdown.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexMarkdown.cxx b/lexers/LexMarkdown.cxx index a92697707..c774b736f 100644 --- a/lexers/LexMarkdown.cxx +++ b/lexers/LexMarkdown.cxx @@ -118,10 +118,11 @@ static bool AtTermStart(StyleContext &sc) { } static bool IsValidHrule(const unsigned int endPos, StyleContext &sc) { - int c, count = 1; + int count = 1; unsigned int i = 0; - while (++i) { - c = sc.GetRelative(i); + for (;;) { + ++i; + int c = sc.GetRelative(i); if (c == sc.ch) ++count; // hit a terminating character @@ -140,7 +141,6 @@ static bool IsValidHrule(const unsigned int endPos, StyleContext &sc) { } } } - return false; } static void ColorizeMarkdownDoc(unsigned int startPos, int length, int initStyle, |