Inconsistent comments in INI files

There is minor inconsistency with comment handling in INI file:
```
dir1 = "I have commentsPost(c1)" ; c1
dir2 = I have no comments ; c2
dir3 = I have commentsPre(c2) from previous line
```
This commit is contained in:
Petr Ledvina 2022-10-18 13:45:18 +02:00 committed by GitHub
parent bb4b53e90c
commit 359c89cc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ class IniParser
$state = self::LINE_START;
$line ++;
} elseif ($s === ';') {
$state = self::COMMENT;
$state = self::COMMENT_END;
}
} else {
$token .= $s;