Start with support for comments

master
Micke Nordin 3 years ago
parent c7bfb5d2db
commit 472667f1f1
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -31,6 +31,7 @@ def wrap(input: str, ws_base, max_length=70) -> str:
class NagObjectType(Enum):
Command = "command"
Comment = "comment"
ContactGroup = "contactgroup"
Contact = "contact"
HostDependency = "hostdependency"

@ -4,6 +4,7 @@ from enum import Enum, auto
from nag_object import NagObject, NagObjectType
class ParserState(Enum):
COMMENT = auto()
DEFINE = auto()
DIRECTIVE = auto()
MULTILINE = auto()

Loading…
Cancel
Save