![]() ![]() ![]() ![]()
|
||||||||||
Copyright © 2001-2005 zopeLABS and community |
##############################################
# LICENSE:
# This code is bound to be ugly, have mistakes,
# and generally just be plain _wrong_.
#
# What do you care though? It works, and you
# got it for free. ;-) Feel free to make any
# changes and re-release.
##############################################
## This is a very bad hack
## at keywording dtml for
## syntax hilighting
kwlist = [
#--start keywords--
'var',
'dtml',
'let',
'call',
'unless',
'return',
'comment',
'tree',
#--end keywords--
]
rwlist = [
#--start reserved words--
'self',
'sequence',
'item',
'index',
'expr',
'name',
'sort',
'start',
'orphan',
'batch',
'standard_html_header',
'standard_html_footer',
'standard_error_message',
'REQUEST',
'RESPONSE',
'None',
#--end reserved words--
]
kwdict = {}
rwdict = {}
for keyword in kwlist:
kwdict[keyword] = 1
for resword in rwlist:
rwdict[resword] = 1
iskeyword = kwdict.has_key
isresword = rwdict.has_key
|
|||||||||