BUGFIX: Comments were not being passed in literal blocks. Reorganized
relevant code.
1 parent d98a67a commit 925668778d619368469a0e793060b9be03dfe6dd
@tundra tundra authored on 21 Mar 2004
Showing 1 changed file
View
16
tconfpy.py
 
# Program Information
 
PROGNAME = "tconfpy"
RCSID = "$Id: tconfpy.py,v 1.127 2004/03/21 14:05:42 tundra Exp $"
RCSID = "$Id: tconfpy.py,v 1.128 2004/03/21 14:10:52 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
 
global CondStack, MsgList, SymTable, INLITERAL
 
orig = line # May need copy of original for debug output
line = ConditionLine(line)
condstate = True # Results of conditional tests kept here
 
 
##########
# Beginning Of Line Parser
##########
# LITERAL and ENDLITERAL Processing
# These get highest precedence because they block everything else.
#####
 
if line in (LITERAL, ENDLITERAL):
 
if line == LITERAL:
if line.strip() in (LITERAL, ENDLITERAL):
 
if line.strip() == LITERAL:
INLITERAL = True
 
else:
INLITERAL = False
DebugMsg("dPARSEDLINE", (cfgfile, linenum, orig, line))
 
return
 
 
 
line = ConditionLine(line) # Strip out comments and leading/trailing whitespace
condstate = True # Results of conditional tests kept here
 
# Only attempt on non-blank lines for everything else
if line: