2020-10-11 00:24:15 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!-- ==========================================================================\
|
|
|
|
|
|
|
|
|
| To learn how to make your own language parser, please check the following
|
|
|
|
| link:
|
|
|
|
| https://npp-user-manual.org/docs/function-list/
|
|
|
|
|
|
|
|
|
\=========================================================================== -->
|
|
|
|
<NotepadPlus>
|
|
|
|
<functionList>
|
|
|
|
<!-- ========================================================= [ PL/SQL ] -->
|
|
|
|
<parser id="plsql_function" displayName="PL/SQL" commentExpr="((/\*.*?\*)/|(//.*?$))">
|
|
|
|
<function
|
2022-11-30 08:37:19 +00:00
|
|
|
mainExpr="^[ \t]*((PROCEDURE)|(FUNCTION))[\s]+[A-Za-z][\w_]*([\s]*(?'open'\().*?(\)))?(([\s]*;)|([\s]*([ia]s)\s)|([\s]+(RETURN)([\s]+[\w%\.]+)+(([\s]*;)|([\s]+([ia]s)\s))))"
|
2020-10-11 00:24:15 +00:00
|
|
|
displayMode="$className->$functionName"
|
|
|
|
>
|
2022-12-12 01:18:11 +00:00
|
|
|
<functionName>
|
2022-11-30 08:37:19 +00:00
|
|
|
<nameExpr expr="[\s]+[A-Za-z][\w_]*([\s]*(?'open'\().*?(\)))?(([\s]*;)|([\s]*([ia]s)\s)|([\s]+(RETURN)([\s]+[\w%\.]+)+(([\s]*;)|([\s]+([ia]s)\s))))"/>
|
|
|
|
<nameExpr expr="[A-Za-z][\w_]*([\s]*(?'open'\().*?(\)))?(([\s]*;)|([\s]*([ia]s)\s)|([\s]+(RETURN)([\s]+[\w%\.]+)+(([\s]*;)|([\s]+([ia]s)\s))))"/>
|
2020-10-11 00:24:15 +00:00
|
|
|
<nameExpr expr="[A-Za-z][\w_]*([\s]*\([^\)]*\))?(([\s]+(RETURN)([\s]+[\w%\.]+)+))*"/>
|
|
|
|
</functionName>
|
|
|
|
</function>
|
|
|
|
</parser>
|
|
|
|
</functionList>
|
2022-11-30 08:37:19 +00:00
|
|
|
</NotepadPlus>
|