mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-27 04:38:26 +02:00
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15564#issuecomment-2305174561 Fix #5631, close #15576
30 lines
917 B
XML
30 lines
917 B
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>
|
|
<!-- ========================================= [ Initialisation File ] -->
|
|
<!-- File format used for TOML -->
|
|
|
|
<parser
|
|
displayName="TOML Table"
|
|
id ="toml_table"
|
|
commentExpr="(?x)
|
|
(?m-s:[#].*$) # Single Line Comment
|
|
"
|
|
>
|
|
<function
|
|
mainExpr="^\h*[\[[\w\."\-']+\]"
|
|
>
|
|
<functionName>
|
|
<nameExpr expr="[\w\."\-']+" />
|
|
</functionName>
|
|
</function>
|
|
</parser>
|
|
</functionList>
|
|
</NotepadPlus> |