More fixes towards invalid tabs?
This commit is contained in:
parent
84bfd0d3de
commit
0889d66c32
2 changed files with 1 additions and 2 deletions
|
@ -1915,7 +1915,7 @@ impl<T: Iterator<Item = char>> Scanner<T> {
|
||||||
self.skip();
|
self.skip();
|
||||||
if self.look_ch() == '\t'
|
if self.look_ch() == '\t'
|
||||||
&& !self.skip_ws_to_eol(SkipTabs::Yes).has_valid_yaml_ws()
|
&& !self.skip_ws_to_eol(SkipTabs::Yes).has_valid_yaml_ws()
|
||||||
&& self.ch() == '-'
|
&& (self.ch() == '-' || is_alpha(self.ch()))
|
||||||
{
|
{
|
||||||
return Err(ScanError::new(
|
return Err(ScanError::new(
|
||||||
self.mark,
|
self.mark,
|
||||||
|
|
|
@ -301,7 +301,6 @@ static EXPECTED_FAILURES: &[&str] = &[
|
||||||
// TAB as start of plain scalar instead of whitespace
|
// TAB as start of plain scalar instead of whitespace
|
||||||
// TABs in whitespace-only lines
|
// TABs in whitespace-only lines
|
||||||
// TABs after marker ? or : (space required?)
|
// TABs after marker ? or : (space required?)
|
||||||
"Y79Y-09",
|
|
||||||
// Other TABs
|
// Other TABs
|
||||||
"DK95-01", // in double-quoted scalar
|
"DK95-01", // in double-quoted scalar
|
||||||
// Empty key in flow mappings
|
// Empty key in flow mappings
|
||||||
|
|
Loading…
Reference in a new issue