mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-21 08:58:06 +02:00
Fix C# function list not working with comments
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3643#issuecomment-1455254475 Close #16386
This commit is contained in:
parent
03d1268b44
commit
884f8cdc06
@ -11,8 +11,16 @@ using Microsoft.Owin.Security.OpenIdConnect;
|
||||
|
||||
namespace $OwinNamespace$
|
||||
{
|
||||
// check if comments are causing parsing problems
|
||||
/* check if comments are causing parsing problems
|
||||
check if comments are causing parsing problems
|
||||
*/
|
||||
public partial class $OwinClass$
|
||||
{
|
||||
// check if comments are causing parsing problems
|
||||
/* check if comments are causing parsing problems
|
||||
check if comments are causing parsing problems
|
||||
*/
|
||||
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];
|
||||
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
|
||||
private static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
|
||||
@ -25,6 +33,11 @@ namespace $OwinNamespace$
|
||||
|
||||
app.UseCookieAuthentication(new CookieAuthenticationOptions());
|
||||
|
||||
// check if comments are causing parsing problems
|
||||
/* check if comments are causing parsing problems
|
||||
check if comments are causing parsing problems
|
||||
*/
|
||||
|
||||
app.UseOpenIdConnectAuthentication(
|
||||
new OpenIdConnectAuthenticationOptions
|
||||
{
|
||||
@ -34,4 +47,9 @@ namespace $OwinNamespace$
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// check if comments are causing parsing problems
|
||||
/* check if comments are causing parsing problems
|
||||
check if comments are causing parsing problems
|
||||
*/
|
||||
|
@ -38,6 +38,16 @@
|
||||
</functionName>
|
||||
</function>
|
||||
</classRange>
|
||||
<function
|
||||
mainExpr="^[\t\x20]*((static|const|virtual)\s+)?\w+(\s+\w+)?(\s+|(\*|\*\*|&)\s+|\s+(\*|\*\*|&)|\s+(\*|\*\*|&)\s+)(\w+\s*::)?(?!(if|while|for))\w+\s*\([^\)\(]*\)(\s*const\s*)?[\n\s]*\{">
|
||||
<functionName>
|
||||
<nameExpr expr="(?!(if|while|for))\w+\s*\(" />
|
||||
<nameExpr expr="(?!(if|while|for))\w+" />
|
||||
</functionName>
|
||||
<className>
|
||||
<nameExpr expr="\w+(?=\s*::)" />
|
||||
</className>
|
||||
</function>
|
||||
</parser>
|
||||
</functionList>
|
||||
</NotepadPlus>
|
Loading…
x
Reference in New Issue
Block a user