You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
<?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>
|
|
<!-- ======================================================== [ Raku ] -->
|
|
|
|
<parser
|
|
displayName="Raku"
|
|
id ="raku_function"
|
|
commentExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
|
|
(?m-s:\x23.*$) # Single Line Comment
|
|
"
|
|
>
|
|
<function
|
|
mainExpr="(?x) # Utilize inline comments (see `RegEx - Pattern Modifiers`)
|
|
sub
|
|
\s+
|
|
[A-Za-z_]\w*
|
|
(\s*\([^()]*\))? # prototype or signature
|
|
(\s*\:\s*[^{]+)? # attributes
|
|
\s*\{ # start of class body
|
|
"
|
|
>
|
|
<functionName>
|
|
<nameExpr expr="(?:sub\s+)?\K[A-Za-z_]\w*" />
|
|
</functionName>
|
|
<className>
|
|
<nameExpr expr="[A-Za-z_]\w*(?=\s*:{2})" />
|
|
</className>
|
|
</function>
|
|
</parser>
|
|
</functionList>
|
|
</NotepadPlus> |