From 32b45e16d8d34da0b932e4531d74fd3bc9cb5b1d Mon Sep 17 00:00:00 2001 From: Flobe Date: Fri, 27 Nov 2015 10:30:59 -0800 Subject: [PATCH] Minor coding style fix, removed unecessary comment Closes #1192, fixes #868 --- PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp | 2 +- PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp b/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp index 2a773b2d9..c0552d4dc 100644 --- a/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp +++ b/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp @@ -401,7 +401,7 @@ XmlMatchedTagsHighlighter::FindResult XmlMatchedTagsHighlighter::findOpenTag(con { nextChar = _pEditView->execute(SCI_GETCHARAT, result.end); styleAt = _pEditView->execute(SCI_GETSTYLEAT, result.start); - if (styleAt != SCE_H_CDATA && styleAt != SCE_H_DOUBLESTRING && styleAt != SCE_H_SINGLESTRING && styleAt != SCE_H_COMMENT ) + if (styleAt != SCE_H_CDATA && styleAt != SCE_H_DOUBLESTRING && styleAt != SCE_H_SINGLESTRING && styleAt != SCE_H_COMMENT) { // We've got an open tag for this tag name (i.e. nextChar was space or '>') // Now we need to find the end of the start tag. diff --git a/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h b/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h index 0059c86b8..dcaf18f04 100644 --- a/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h +++ b/PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h @@ -63,7 +63,6 @@ private: // Allowed whitespace characters in XML bool isWhitespace(int ch) { return ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n'; } - bool insideComment(int p); // added by Amy FindResult findText(const char *text, int start, int end, int flags = 0); FindResult findOpenTag(const std::string& tagName, int start, int end); FindResult findCloseTag(const std::string& tagName, int start, int end);