diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-08 19:37:38 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-08 19:37:38 +0200 |
| commit | f85e5aac64784deac75950a1307f2ca802ad6765 (patch) | |
| tree | 95d1082a4efd3451cfe669f3a687d0aa8b0a4d0d /src/parse/scanner.rs | |
| parent | 5a500fb8a7c0ba4b8a59e2622c8cbafdc4ce1fe9 (diff) | |
URL special case for line comments
Diffstat (limited to 'src/parse/scanner.rs')
| -rw-r--r-- | src/parse/scanner.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs index 1a0e3045..fad44e89 100644 --- a/src/parse/scanner.rs +++ b/src/parse/scanner.rs @@ -96,11 +96,6 @@ impl<'s> Scanner<'s> { self.peek().map(f).unwrap_or(false) } - /// Checks whether the remaining source starts with the given string. - pub fn starts_with(&self, string: &str) -> bool { - self.rest().starts_with(string) - } - /// The previous index in the source string. pub fn last_index(&self) -> usize { self.eaten() |
