mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-21 17:08:12 +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$
|
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$
|
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 clientId = ConfigurationManager.AppSettings["ida:ClientId"];
|
||||||
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
|
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
|
||||||
private static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
|
private static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
|
||||||
@ -25,6 +33,11 @@ namespace $OwinNamespace$
|
|||||||
|
|
||||||
app.UseCookieAuthentication(new CookieAuthenticationOptions());
|
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(
|
app.UseOpenIdConnectAuthentication(
|
||||||
new OpenIdConnectAuthenticationOptions
|
new OpenIdConnectAuthenticationOptions
|
||||||
{
|
{
|
||||||
@ -35,3 +48,8 @@ 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>
|
</functionName>
|
||||||
</function>
|
</function>
|
||||||
</classRange>
|
</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>
|
</parser>
|
||||||
</functionList>
|
</functionList>
|
||||||
</NotepadPlus>
|
</NotepadPlus>
|
Loading…
x
Reference in New Issue
Block a user