# JavaScript genric delimeter [C# too without last array]
jsRules = [
{"name":"doublequote", "start":'"', "end":'"', "noslash":True},
{"name":"singlequote", "start":"'", "end":"'", "noslash":True},
{"name":"singlelinecomment", "start":"//", "end":["\n", "\r"]},
{"name":"multilinecomment", "start":"/*", "end":"*/"},
{"name":"regexp", "start":"/", "end":"/", "match":"^/[^\n\r]+/$", "noslash":True}
]
# PHP genric delimeter
phpRules = [
{"name":"doublequote", "start":'"', "end":'"', "noslash":True},
{"name":"singlequote", "start":"'", "end":"'", "noslash":True},
{"name":"singlelinecomment", "start":"//", "end":["\n", "\r"]},
{"name":"singlelinecomment", "start":"#", "end":["\n", "\r"]},
{"name":"multilinecomment", "start":"/*", "end":"*/"}
]
# PHP embed in HTML genric delimeter
embedPhpRules = [
{"name":"phpcode", "start":"<?php", "end":"?>", "noslash":True},
{"name":"phpcode", "start":"<?", "end":"?>", "noslash":True},
{"name":"doublequote", "start":'"', "end":'"', "noslash":True},
{"name":"singlequote", "start":"'", "end":"'", "noslash":True},
{"name":"singlelinecomment", "start":"//", "end":["\n", "\r"]},
{"name":"singlelinecomment", "start":"#", "end":["\n", "\r"]},
{"name":"multilinecomment", "start":"/*", "end":"*/"}
]
# Python genric delimeter
pythonRules = [
{"name":"multiquote", "start":'"""', "end":'"""'},
{"name":"doublequote", "start":'"', "end":'"', "noslash":True},
{"name":"singlequote", "start":"'", "end":"'", "noslash":True},
{"name":"singlelinecomment", "start":"#", "end":["\n", "\r"]}
] |