Created
May 4, 2014 23:57
-
-
Save codebrainz/39df6da5fb39c118d477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: tagmanager/python.c | |
=================================================================== | |
--- tagmanager/python.c (revision 5850) | |
+++ tagmanager/python.c (working copy) | |
@@ -478,6 +478,9 @@ | |
for (; *cp; cp++) | |
{ | |
+ if (*cp == '#') | |
+ break; | |
+ | |
if (*cp == '"' || *cp == '\'') | |
{ | |
if (strncmp(cp, doubletriple, 3) == 0) | |
@@ -674,14 +677,14 @@ | |
indent = cp - line; | |
line_skip = 0; | |
- checkParent(nesting_levels, indent, parent); | |
- | |
/* Deal with multiline string ending. */ | |
if (longStringLiteral) | |
{ | |
find_triple_end(cp, &longStringLiteral); | |
continue; | |
} | |
+ | |
+ checkParent(nesting_levels, indent, parent); | |
/* Deal with multiline string start. */ | |
longstring = find_triple_start(cp, &longStringLiteral); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment