mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 08:05:17 +00:00
Add BOM check
This commit is contained in:
parent
6fc0d42d4a
commit
db91adbcc3
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,10 @@ where
|
||||||
lxr.window.slide();
|
lxr.window.slide();
|
||||||
lxr.window.slide();
|
lxr.window.slide();
|
||||||
lxr.window.slide();
|
lxr.window.slide();
|
||||||
|
// Check if BOM exists
|
||||||
|
if let Some('\u{feff}') = lxr.window[0] {
|
||||||
|
lxr.window.slide();
|
||||||
|
}
|
||||||
// Start at top row (=1) left column (=1)
|
// Start at top row (=1) left column (=1)
|
||||||
lxr.location.reset();
|
lxr.location.reset();
|
||||||
lxr
|
lxr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue