We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d05991 commit aa9a9aaCopy full SHA for aa9a9aa
pypreprocessor/__init__.py
@@ -317,6 +317,11 @@ def lexer(self, line):
317
print('Warning trying to remove more blocks than present',
318
self.input, self.__linenum)
319
320
+ elif self.__is_directive(line, 'error'):
321
+ print('File: "' + self.input + '", line ' + str(self.__linenum + 1))
322
+ print('Error directive reached')
323
+ sys.exit(1)
324
+
325
else:
326
# escapechar + space ==> comment
327
# starts with #!/ ==> shebang
0 commit comments