[NEW] Add C# in Function List.
[BUG_FIXED] Add "Block Uncomment" command in the Shortcut Mapper. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1281 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
daf42f1d62
commit
57633249ab
@ -118,6 +118,7 @@ WinMenuKeyDefinition winKeyDefs[] = {
|
||||
{VK_K, IDM_EDIT_BLOCK_COMMENT_SET, true, false, false, NULL},
|
||||
{VK_K, IDM_EDIT_BLOCK_UNCOMMENT, true, false, true, NULL},
|
||||
{VK_Q, IDM_EDIT_STREAM_COMMENT, true, false, true, NULL},
|
||||
{VK_NULL, IDM_EDIT_STREAM_UNCOMMENT, false, false, false, NULL},
|
||||
{VK_SPACE, IDM_EDIT_AUTOCOMPLETE, true, false, false, NULL},
|
||||
{VK_SPACE, IDM_EDIT_AUTOCOMPLETE_PATH, true, true, false, NULL},
|
||||
{VK_RETURN, IDM_EDIT_AUTOCOMPLETE_CURRENTFILE, true, false, false, NULL},
|
||||
|
@ -21,6 +21,7 @@ http://notepad-plus-plus.org/features/function-list.html
|
||||
<association langID="1" id="php_function"/>
|
||||
<association langID="2" id="c_function"/>
|
||||
<association langID="3" id="c_cpp_function"/>
|
||||
<association langID="4" id="cs_function"/>
|
||||
<association langID="6" id="java"/>
|
||||
<association langID="9" id="xml_node"/>
|
||||
<association langID="12" id="batch_label"/>
|
||||
@ -231,6 +232,28 @@ http://notepad-plus-plus.org/features/function-list.html
|
||||
</function>
|
||||
</parser>
|
||||
|
||||
<parser id="cs_function" displayName="C# Class" commentExpr="((/\*.*?\*)/|(//.*?$))">
|
||||
<classRange
|
||||
mainExpr="^[\t ]*((public|protected|private|internal)[\s]+)?([\w]+[\s]*)?(class|struct|interface)[\t ]+[^\{]+\{"
|
||||
openSymbole = "\{"
|
||||
closeSymbole = "\}"
|
||||
displayMode="node">
|
||||
<className>
|
||||
<nameExpr expr="(class|struct|interface)[\t ]+[\w]+"/>
|
||||
<nameExpr expr="[\t ]+[\w]+"/>
|
||||
<nameExpr expr="[\w]+"/>
|
||||
</className>
|
||||
<function
|
||||
mainExpr="^[^\S\r\n]*(?<modifier1>(?:public|protected|internal|private)\s*)?(?<modifier2>(?:new|static|virtual|sealed|override|abstract|extern)\s*)?(partial\s*)?(?<type>(?!(return|if|else))\w+(?<genericType><[\w,\s<>]+>)?\s+)(?<name>\w+(?<genericNameType><[\w,\s<>]+>)?\s?)\((?<params>[\w\s,<>\[\]\:=\.]*)\)(?<ctorChain>\s*\:\s*(?:base|this)\s*\((?<ctorParams>[\w\s,<>\[\]\:=\.]*)\))?[\w\s<>\:,\(\)\[\]]*(?:\{|;)">
|
||||
<functionName>
|
||||
<funcNameExpr expr="(\w+(<[\w,\s<>]+>)?\s?)\("/>
|
||||
<funcNameExpr expr="(\w+(<[\w,\s<>]+>)?\s?)"/>
|
||||
</functionName>
|
||||
</function>
|
||||
</classRange>
|
||||
<function mainExpr="">
|
||||
</function>
|
||||
</parser>
|
||||
</parsers>
|
||||
</functionList>
|
||||
</NotepadPlus>
|
||||
|
Loading…
Reference in New Issue
Block a user