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
39 lines
1.5 KiB
XML
39 lines
1.5 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>
|
|
<!-- ======================================================== [ VHDL ] -->
|
|
<!--
|
|
| Derived from :
|
|
| https://community.notepad-plus-plus.org/topic/11554/function-list-for-vhdl
|
|
\-->
|
|
<parser
|
|
displayName="VHDL"
|
|
id ="vhdl_syntax"
|
|
>
|
|
<function
|
|
mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`)
|
|
^ # match at beginning of line
|
|
\h* # optional leading whitespace
|
|
(\w+\h*:)? # ID of process
|
|
(?:\h(?!END)\w+\h)* # make sure this is not the end of a module
|
|
\h*
|
|
(?(1)(?:ENTITY|BLOCK|PROCESS)| # keywords if ':' was detected before
|
|
(?:ENTITY|COMPONENT|ARCHITECTURE)) # keywords else
|
|
[\h\(]+ # expect at least one blank or parentheses
|
|
[A-Za-z0-9_\(\)., ]+ # ID or sensitivity list
|
|
(?!\;)"
|
|
>
|
|
<functionName>
|
|
<nameExpr expr=".*" />
|
|
</functionName>
|
|
</function>
|
|
</parser>
|
|
</functionList>
|
|
</NotepadPlus> |