c0c070abaf
New "functionList" will be added beside of notepad++.exe or "%APPDATA%\Notepad++\", according the installation mode. If the portable package is used, after removing "doLocalConf.xml", the "functionList" folder should be copied manually from Notepad++ installed directory to "%APPDATA%\Notepad++\" to make function list work again. All splited files are localized in this folder with the explicit language name. "overrideMap.xml" is optional for overriding the default functionList parse rule files, and for adding UDL parse rule files. Close #4896
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?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>
|
|
<!-- Variant for COBOL free-form reference format -->
|
|
<parser id="cobol_section_free" displayName="COBOL free-form reference format">
|
|
<!-- working comment Expression:
|
|
commentExpr="(?m-s)(?:\*>).*$"
|
|
cannot be used because problems with comment boundaries
|
|
in current FunctionList implementation, for details see
|
|
https://sourceforge.net/p/notepad-plus/patches/597/
|
|
-->
|
|
<!-- Variant with paragraphs (don't work with comment lines
|
|
before section/paragraph header, can be activated when
|
|
comment boundaries work and the commentExpr is used) -->
|
|
<!--
|
|
<function
|
|
mainExpr="(?m-s)(?<=\.)\s*(?!exit\s)[\w_-]+(\s+section(\s*|(\s+[\w_-]+)?))(?=\.)"
|
|
"
|
|
>
|
|
<functionName>
|
|
<nameExpr expr="(?m-s)(?<=[\s\.])[\w_-]+(\s*section\s*([\w_-]+)?)?"/>
|
|
</functionName>
|
|
</function>
|
|
-->
|
|
<!-- Variant without paragraphs (works with comment lines before section header) -->
|
|
<function
|
|
mainExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
|
|
[\s\.](?!exit\s)[\w_-]+\s+section(\s*|(\s+[\w_-]+)?)(?=\.) # all names that come before `section` but not `exit section`
|
|
"
|
|
>
|
|
<functionName>
|
|
<nameExpr expr="[\w_-]+\s*section"/>
|
|
</functionName>
|
|
</function>
|
|
</parser>
|
|
</functionList>
|
|
</NotepadPlus> |