Skip to content

Feat/comments#84

Open
gearhartnoah wants to merge 2 commits into
mainfrom
feat/comments
Open

Feat/comments#84
gearhartnoah wants to merge 2 commits into
mainfrom
feat/comments

Conversation

@gearhartnoah
Copy link
Copy Markdown
Collaborator

@gearhartnoah gearhartnoah commented Apr 20, 2026

Support for single-line comments starting with "$$"

Support for multi-line comments starting with "$:" and ending with ":$"

Copy link
Copy Markdown
Owner

@david-callender david-callender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just a few simplifications

Comment thread ferric/src/lexer.rs
b'"' => self.lex_string_lit(loc)?,

b => return Err(LexerError::InvalidByte(self.src.clone(), loc, b)),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

random extra line

Comment thread ferric/src/lexer.rs

fn ignore_comments(&mut self) {
if self.stream.peek() == Some(&b'$') {
loop {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simplified to a while loop

Comment thread ferric/src/lexer.rs
}
else if self.stream.peek() == Some(&b':') {
self.stream.next();
loop {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be simplified into a while loop

@david-callender david-callender linked an issue Apr 27, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add commenting

2 participants