More fixes towards invalid tabs?

This commit is contained in:
Ethiraric 2023-12-26 00:48:36 +01:00
parent 06b03f5cf5
commit 6e8af26435
2 changed files with 1 additions and 2 deletions

View file

@ -1915,7 +1915,7 @@ impl<T: Iterator<Item = char>> Scanner<T> {
self.skip();
if self.look_ch() == '\t'
&& !self.skip_ws_to_eol(SkipTabs::Yes).has_valid_yaml_ws()
&& self.ch() == '-'
&& (self.ch() == '-' || is_alpha(self.ch()))
{
return Err(ScanError::new(
self.mark,

View file

@ -301,7 +301,6 @@ static EXPECTED_FAILURES: &[&str] = &[
// TAB as start of plain scalar instead of whitespace
// TABs in whitespace-only lines
// TABs after marker ? or : (space required?)
"Y79Y-09",
// Other TABs
"DK95-01", // in double-quoted scalar
// Empty key in flow mappings