File tree 2 files changed +11
-7
lines changed 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,8 @@ Lexer::build_token ()
589
589
if (current_char.is_eof ())
590
590
{
591
591
rust_error_at (
592
- loc, " unexpected EOF while looking for end of comment" );
592
+ loc, ErrorCode::E0758 ,
593
+ " unexpected EOF while looking for end of comment" );
593
594
break ;
594
595
}
595
596
str += current_char;
@@ -644,7 +645,8 @@ Lexer::build_token ()
644
645
if (current_char.is_eof ())
645
646
{
646
647
rust_error_at (
647
- loc, " unexpected EOF while looking for end of comment" );
648
+ loc, ErrorCode::E0758 ,
649
+ " unexpected EOF while looking for end of comment" );
648
650
break ;
649
651
}
650
652
@@ -708,7 +710,8 @@ Lexer::build_token ()
708
710
if (current_char.is_eof ())
709
711
{
710
712
rust_error_at (
711
- loc, " unexpected EOF while looking for end of comment" );
713
+ loc, ErrorCode::E0758 ,
714
+ " unexpected EOF while looking for end of comment" );
712
715
break ;
713
716
}
714
717
Original file line number Diff line number Diff line change @@ -115,14 +115,15 @@ class Lexer
115
115
// Request new Location for current column in line_table
116
116
location_t get_current_location ();
117
117
118
- // Skips the current input char .
118
+ // Skips the current input character .
119
119
void skip_input ();
120
- // Advances current input char to n + 1 chars ahead of current position.
120
+ // Advances current input character to n + 1 characters ahead of current
121
+ // position.
121
122
void skip_input (int n);
122
123
123
- // Peeks the current char .
124
+ // Peeks the current character .
124
125
Codepoint peek_input ();
125
- // Returns char n bytes ahead of current position.
126
+ // Returns character n characters ahead of current position.
126
127
Codepoint peek_input (int n);
127
128
128
129
// Classifies keyword (i.e. gets id for keyword).
You can’t perform that action at this time.
0 commit comments