-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
Description
Description of the Issue
Function list is not extracting the function names for Lua
Steps to Reproduce the Issue
- Install notepad++
- Tell it
Do not use %appdata% - Edit functionList.hml
- Add
<association id="lua_function" langID="23"/> - Add the function extractor:
<parser id="lua_function" displayName="Lua" commentExpr="--[^\n]*">
<!-- Basic lua table view, nested lua table not supported -->
<classRange
mainExpr="[.\w]+[\s]*=[\s]*\{"
openSymbole="\{"
closeSymbole="\}"
displayMode="node">
<className>
<nameExpr expr="[.\w]+"/>
</className>
<function
mainExpr="[.\w]+[\s]*=[\s]*['"]?[\w]+['"]?">
<functionName>
<funcNameExpr expr=".*"/>
</functionName>
</function>
</classRange>
<!-- Basic lua functions support -->
<function mainExpr="((\s+(local)\s+(function)\s+[^0-9][_A-Za-z0-9]+)|(\s+(function)\s+[^0-9][_A-Za-z0-9]+)|(\s+(local)\s+[^0-9][_(\.)A-Za-z0-9]+\s+(=)\s+(function))|(\s+[^0-9][_(\.)A-Za-z0-9]+\s+(=)\s+(function)))"
displayMode="$functionName">
<functionName>
<nameExpr expr="[^0-9][_A-Za-z0-9]+\s*\("/>
<nameExpr expr="[^0-9][_A-Za-z0-9]+"/>
</functionName>
</function>
</parser>- Save the file
Expected Behavior
Function and classes to show up in the function viewer like c++ for example
Actual Behavior
Functions do not show up even if Notepad++ is restarted
Debug Information
Notepad++ (7.5.6) (32-bit)
Reactions are currently unavailable
