Added the comment tag/
This commit is contained in:
1 parent
8443495675
commit
d8a6638741
3 files changed
+32
No files matched your search
@@ -8,3 +8,6 @@ modifications. Data contained within the tags may modify their
|
||||
containers before placing any output. The space taken by the tag
|
||||
itself is not passwed to the output and will not appear in the output.
|
||||
|
||||
Skip Blank Lines options on containers will skip passing any blank
|
||||
lines or line containing only whitespace to the output.
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#include "__cpmment.h"
|
||||
#include "Exception.h"
|
||||
|
||||
namespace jet {
|
||||
|
||||
__comment::__comment(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
|
||||
if(!hasContainer)
|
||||
throw coreutils::Exception("comment must have a container.");
|
||||
output = false;
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#ifndef ____comment_h__
|
||||
#define ____comment_h__
|
||||
|
||||
#include "Tag.h"
|
||||
|
||||
namespace jet {
|
||||
|
||||
class __comment : public Tag {
|
||||
|
||||
public:
|
||||
__comment(coreutils::ZString &in, coreutils::MString &out, Global &global);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user