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): class NagObjectType(Enum):
Command = "command" Command = "command"
Comment = "comment"
ContactGroup = "contactgroup" ContactGroup = "contactgroup"
Contact = "contact" Contact = "contact"
HostDependency = "hostdependency" HostDependency = "hostdependency"

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

Loading…
Cancel
Save