是否有人对Ruby和Rake的Notepad ++ Function List插件具有解析规则 [英] Does anyone have parsing rules for the Notepad++ Function List plugin for Ruby and Rake

查看:86
本文介绍了是否有人对Ruby和Rake的Notepad ++ Function List插件具有解析规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Notepad ++编辑rake文件,我希望能够使用功能列表插件.

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.

谢谢

推荐答案

从6.4版开始,就不需要插件了!查看新的功能列表功能: http://notepad-plus-plus.org/features/function-list.html

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

语言支持即将到来,也许在这里询问会有所帮助: https://sourceforge.net/p/notepad-plus/discussion/331753/thread/b9d2fe00/

Language support is coming, perhaps asking here would help: https://sourceforge.net/p/notepad-plus/discussion/331753/thread/b9d2fe00/

这篇关于是否有人对Ruby和Rake的Notepad ++ Function List插件具有解析规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆