mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2026-01-16 07:04:39 +08:00
定位目标行时跳过注释
This commit is contained in:
@@ -52,6 +52,10 @@ namespace BulePointLilac.Methods
|
||||
{
|
||||
for(int i = sectionRow + 1; i < lines.Count; i++)
|
||||
{
|
||||
if(lines[i].StartsWith(";") || lines[i].StartsWith("#"))
|
||||
{
|
||||
continue;//跳过注释
|
||||
}
|
||||
if(lines[i].StartsWith("["))
|
||||
{
|
||||
nextSectionRow = i; break;//读取到下一个section
|
||||
|
||||
Reference in New Issue
Block a user