Parameter Function Parsing Rule

cahyo
2012-06-18
2013-05-21
  • cahyo
    cahyo
    2012-06-18

    <Language name="PHP" imagelistpath="plugins\\Config\\php.bmp">
            <CommList param1="#" param2=""/>
            <CommList param1="//" param2=""/>
            <CommList param1="/\*" param2="\*/"/>
    <Group name="Classes" subgroup="Functions" icon="1" child="1" autoexp="4" matchcase="1" fendtobbeg="" bbegtobend="\{" keywords="">
                <Rules regexbeg="class" regexfunc="&lt;span&gt;[klzzwxh:0005_ ]&lt;/span&gt;+" regexend="" bodybegin="\{" bodyend="\}" sep=""/>
            </Group>
            <Group name="Class Variables" subgroup="" icon="6" child="6" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="public\\ " regexfunc="\\$.*&lt;span&gt;[^;]&lt;/span&gt;" regexend=".*;" bodybegin="" bodyend="" sep=""/>
                <Rules regexbeg="protected\\ " regexfunc="\\$.*&lt;span&gt;[^;]&lt;/span&gt;" regexend=".*;" bodybegin="" bodyend="" sep=""/>
                <Rules regexbeg="private\\ " regexfunc="\\$.*&lt;span&gt;[^;]&lt;/span&gt;" regexend=".*;" bodybegin="" bodyend="" sep=""/>
            </Group>
            <Group name="Functions" subgroup="Params" icon="19" child="19" autoexp="4" matchcase="1" fendtobbeg="" bbegtobend="\{" keywords="">
                <Rules regexbeg="function&lt;span&gt;[klzzwxh:0015klzzwxh:0032]&lt;/span&gt;+" regexfunc="&lt;span&gt;[klzzwxh:0034klzzwxh:0016_]&lt;/span&gt;+\\s*\(.*\)" regexend="\\s*" bodybegin="\{" bodyend="\}" sep=";"/>
            </Group>
            <Group name="Params" subgroup="" icon="6" child="6" autoexp="4" matchcase="1" fendtobbeg="" bbegtobend="\(" keywords="">
                <Rules regexbeg="\(" regexfunc=".*" regexend="\)" bodybegin="\(" bodyend="\);?" sep=","/>
            </Group>
    </Language>


    Can anybody help me for parameter function parsing? If it work it can be used to any languange.