Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Parse the complex escape sequence after \\ #6454

Closed
Tracked by #6642
sundy-li opened this issue Jul 5, 2022 · 0 comments
Closed
Tracked by #6642

Feature: Parse the complex escape sequence after \\ #6454

sundy-li opened this issue Jul 5, 2022 · 0 comments
Assignees
Labels
C-feature Category: feature

Comments

@sundy-li
Copy link
Member

sundy-li commented Jul 5, 2022

Summary

Description for this feature.

 fn read_escaped_string_text(&mut self, buf: &mut Vec<u8>) -> Result<()> {
        self.keep_read(buf, |f| f != b'\t' && f != b'\n' && f != b'\\')?;
        if self.ignore_byte(b'\\')? {
            // TODO parse complex escape sequence
            buf.push(b'\\');
            self.read_escaped_string_text(buf)?;
        }
        Ok(())
    }
@sundy-li sundy-li added the C-feature Category: feature label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

2 participants