I'me using Notepad++ for editing rake files and I'd like to be able to use the function list plugin.
I've been unable to find any parsing rules on line, and the "Language Parsing Rules" dialog is not very clearly documented.
I'm parsing methods into the list with the following, but would like to also display tasks.
Function Begin: [ \t]*def[ \t]+
Function List Name: [a-zA-Z0-9_\.]*
This isn't very clean, and won't capture functions that end with ? or !, but it is a start.
My task rule, which isn't working is:
Function Begin: [ \t]*task[ \t]+
Function List Name: :[a-zA-Z0-9_\.]*
Function End: [ \t]+do
Any suggestions most welcome.
thanks
I'm using the following parser for the new functionList.xml. It recognizes most of classes modules and method definitions exept if multiple definitions are on the same line. E.g.
In the above case it will just recognize "module A"
Everything is just presented as function including "class" "module" or "def" keyword. It is does not use the hierarchy provided by classrange.
Maybe you can use the below settings which you can add in your
FunctionListRules.xml
file:Since version 6.4 there is no need for a plugin! Check out the new function list feature: http://notepad-plus-plus.org/features/function-list.html
Language support is coming, perhaps asking here would help: https://sourceforge.net/p/notepad-plus/discussion/331753/thread/b9d2fe00/
Here is my rules. Still not perfect yet. Don't know how to config subgroups.