Skip to content

Function List - JavaScript #2012

@shimscharf

Description

@shimscharf

Hi all,
I've decided to add my changes to the Function List for javascript, to help you in your own developement. I believe it works better than the current inbuilt way, particularly for jQuery and other libraries. Let me know your thoughts?

        <parser id="js_function" displayName="Javascript" commentExpr="((/\*.*?\*)/|(//.*?$))">
            <function
                mainExpr="((^|[\(\){};:=,\s])function(\s+[$_\w]*|\()|(?:[$_A-Za-z][\w_$]*\s*\.\s*(|prototype\s*\.)\s*[$_A-Za-z][\w_$]*\s*|[$_A-Za-z][\w_$]*\s*)[=:]\s*\(*(?:function(\s+|\()))"
                displayMode="$className->$functionName">    
                <functionName>
                    <nameExpr expr="(?<=function)\s+[$_A-Za-z][\w_$]*|[$_A-Za-z][\w_$]*\s*[=:]"/>
                    <nameExpr expr="[$_A-Za-z][$_\w]*"/>
                </functionName>
                <className>
                    <nameExpr expr="[$_A-Za-z][$_\w]*\s*\.\s*"/>
                    <nameExpr expr="([$_A-Za-z][$_\w]*)*"/>
                </className>
            </function>
        </parser>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions