mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-12 15:45:22 +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();
|
||||
// Check if BOM exists
|
||||
if let Some('\u{feff}') = lxr.window[0] {
|
||||
lxr.window.slide();
|
||||
}
|
||||
// Start at top row (=1) left column (=1)
|
||||
lxr.location.reset();
|
||||
lxr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue