aboutsummaryrefslogtreecommitdiff
path: root/src/lexer/comments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer/comments.rs')
-rw-r--r--src/lexer/comments.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lexer/comments.rs b/src/lexer/comments.rs
index 79782cc5b..b70f2c6c6 100644
--- a/src/lexer/comments.rs
+++ b/src/lexer/comments.rs
@@ -1,6 +1,6 @@
1use lexer::ptr::Ptr; 1use lexer::ptr::Ptr;
2 2
3use {SyntaxKind}; 3use SyntaxKind;
4use syntax_kinds::*; 4use syntax_kinds::*;
5 5
6pub(crate) fn scan_shebang(ptr: &mut Ptr) -> bool { 6pub(crate) fn scan_shebang(ptr: &mut Ptr) -> bool {
@@ -23,7 +23,6 @@ pub(crate) fn scan_comment(ptr: &mut Ptr) -> Option<SyntaxKind> {
23 } 23 }
24} 24}
25 25
26
27fn bump_until_eol(ptr: &mut Ptr) { 26fn bump_until_eol(ptr: &mut Ptr) {
28 loop { 27 loop {
29 if ptr.next_is('\n') || ptr.next_is('\r') && ptr.nnext_is('\n') { 28 if ptr.next_is('\n') || ptr.next_is('\r') && ptr.nnext_is('\n') {
@@ -33,4 +32,4 @@ fn bump_until_eol(ptr: &mut Ptr) {
33 break; 32 break;
34 } 33 }
35 } 34 }
36} \ No newline at end of file 35}