compacted bds mode

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-07-31 09:44:51 -04:00
parent 55cad2deec
commit cfab8fa28f
1 changed files with 18 additions and 18 deletions

View File

@ -23,9 +23,9 @@ class BDSGrammar(Grammar):
PatternRule('delimiter', r'(?:\|\||&&|[!<>=:\{\}\(\)\[\]])'), PatternRule('delimiter', r'(?:\|\||&&|[!<>=:\{\}\(\)\[\]])'),
PatternRule('bds.section', r'section(?= *\()'), PatternRule('bds.section', r'section(?= *\()'),
PatternRule('bds.component', tbbid + r"(?= *\()"), PatternRule('bds.component', tbbid + r"(?= *\()"),
PatternRule('bds.attr_name', r"[a-z_]+(?==)"), PatternRule('bds.aname', r"[a-z_]+(?==)"),
RegionRule('bds.attr_value', r"(?<=)'", StringGrammar1, r"'"), RegionRule('bds.avalue', r"(?<=)'", StringGrammar1, r"'"),
RegionRule('bds.attr_value', r'(?<=)"', StringGrammar2, r'"'), RegionRule('bds.avalue', r'(?<=)"', StringGrammar2, r'"'),
PatternRule('bds.num', r"-?(?:[0-9][0-9\.]*[0-9]|[0-9])"), PatternRule('bds.num', r"-?(?:[0-9][0-9\.]*[0-9]|[0-9])"),
PatternRule('bds.alias', r"[a-z0-9]+(?=:" + tbbid + ")"), PatternRule('bds.alias', r"[a-z0-9]+(?=:" + tbbid + ")"),
PatternRule('bds.id', tbbid), PatternRule('bds.id', tbbid),
@ -42,11 +42,11 @@ class BDS(Fundamental):
colors = { colors = {
'bds.section': ('blue', 'default', 'bold'), 'bds.section': ('blue', 'default', 'bold'),
'bds.component': ('magenta', 'default', 'bold'), 'bds.component': ('magenta', 'default', 'bold'),
'bds.attr_name': ('blue', 'default', 'bold'), 'bds.aname': ('blue', 'default', 'bold'),
'bds.attr_value.start': ('green', 'default', 'bold'), 'bds.avalue.start': ('green', 'default', 'bold'),
'bds.attr_value.data': ('green', 'default', 'bold'), 'bds.avalue.data': ('green', 'default', 'bold'),
'bds.attr_value.null': ('green', 'default', 'bold'), 'bds.avalue.null': ('green', 'default', 'bold'),
'bds.attr_value.end': ('green', 'default', 'bold'), 'bds.avalue.end': ('green', 'default', 'bold'),
'bds.num': ('red', 'default', 'bold'), 'bds.num': ('red', 'default', 'bold'),
'bds.alias': ('magenta', 'default', 'bold'), 'bds.alias': ('magenta', 'default', 'bold'),
'bds.id': ('yellow', 'default', 'bold'), 'bds.id': ('yellow', 'default', 'bold'),