aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-15 14:28:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-15 14:28:09 +1000
commit71cba42205ad92d1d946caead382a326008ae110 (patch)
tree6c43fd4b26d50c12e1ff58ddd33449f5b74c0fe4 /lexers/LexHTML.cxx
parentdfff8da4e2b017d29d870c9b4f642a5c1ce3147c (diff)
downloadscintilla-mirror-71cba42205ad92d1d946caead382a326008ae110.tar.gz
Use bool literals true and false instead of 1 and 0.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index bd14534d4..028c5ec90 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -490,9 +490,9 @@ static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType
return ((ch == '/') && (chNext == '>'));
} else if (0 == strcmp(blockType, "%")) {
if (ch == '/' && isLineEnd(chNext))
- return 1;
+ return true;
else
- return isLineEnd(ch);
+ return isLineEnd(ch);
} else if (0 == strcmp(blockType, "{")) {
return ch == '}';
} else {
@@ -502,13 +502,13 @@ static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType
static bool isDjangoBlockEnd(const int ch, const int chNext, const char *blockType) {
if (strlen(blockType) == 0) {
- return 0;
+ return false;
} else if (0 == strcmp(blockType, "%")) {
return ((ch == '%') && (chNext == '}'));
} else if (0 == strcmp(blockType, "{")) {
return ((ch == '}') && (chNext == '}'));
} else {
- return 0;
+ return false;
}
}