lexer: Fix infinite loop while trimming whitespace
This commit is contained in:
		| @@ -189,7 +189,7 @@ pub mod lexer { | |||||||
|             self.has(|_| true, 1) |             self.has(|_| true, 1) | ||||||
|         } |         } | ||||||
|         pub fn whitespace(self) -> Self { |         pub fn whitespace(self) -> Self { | ||||||
|             self.and_any(|rule| rule.char_fn(|c| c.is_whitespace())) |             self.char_fn(|c| c.is_whitespace()) | ||||||
|         } |         } | ||||||
|         pub fn xid_start(self) -> Self { |         pub fn xid_start(self) -> Self { | ||||||
|             use unicode_xid::UnicodeXID; |             use unicode_xid::UnicodeXID; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user