Start with support for comments
This commit is contained in:
parent
c7bfb5d2db
commit
472667f1f1
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue