Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /lexers/LexPerl.cxx [e6f9a3] .. [7430bd] Maximize Restore

  Switch to side-by-side view

--- a/lexers/LexPerl.cxx
+++ b/lexers/LexPerl.cxx
@@ -415,7 +415,7 @@
 int LexerPerl::InputSymbolScan(StyleContext &sc) {
 	// forward scan for matching > on same line; file handles
 	int c, sLen = 0;
-	while ((c = sc.GetRelativeCharacter(++sLen))) {
+	while ((c = sc.GetRelativeCharacter(++sLen)) != 0) {
 		if (c == '\r' || c == '\n') {
 			return 0;
 		} else if (c == '>') {
@@ -901,7 +901,7 @@
 			}
 			while (!sc.atLineEnd) {		// "EOF" and `EOF` interpolated
 				int c, sLen = 0, endType = 0;
-				while ((c = sc.GetRelativeCharacter(sLen))) {
+				while ((c = sc.GetRelativeCharacter(sLen)) != 0) {
 					// scan to break string into segments
 					if (c == '\\') {
 						endType = 1; break;
@@ -973,7 +973,7 @@
 				Quote.Open(sc.ch);
 			} else {
 				int c, sLen = 0, endType = 0;
-				while ((c = sc.GetRelativeCharacter(sLen))) {
+				while ((c = sc.GetRelativeCharacter(sLen)) != 0) {
 					// scan to break string into segments
 					if (IsASpace(c)) {
 						break;
@@ -1009,7 +1009,7 @@
 			} else {
 				int c, sLen = 0, endType = 0;
 				bool isPattern = (Quote.Rep == 2);
-				while ((c = sc.GetRelativeCharacter(sLen))) {
+				while ((c = sc.GetRelativeCharacter(sLen)) != 0) {
 					// scan to break string into segments
 					if (c == '\\' && Quote.Up != '\\') {
 						endType = 2; break;
@@ -1065,7 +1065,7 @@
 				Quote.Open(sc.ch);
 			} else {
 				int c, sLen = 0, endType = 0;
-				while ((c = sc.GetRelativeCharacter(sLen))) {
+				while ((c = sc.GetRelativeCharacter(sLen)) != 0) {
 					// scan to break string into segments
 					if (IsASpace(c)) {
 						break;