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

scanner: check unknown escape sequence (fix #19131) #19134

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Aug 13, 2023

This PR check unknown escape sequence (fix #19131).

  • Check unknown escape sequence.
  • Add test.
fn main() {
	println(\_(ツ)_/¯')
}

PS D:\Test\v\tt1> v run .
tt1.v:2:14: error: `_` unknown escape sequence
    1 | fn main() {
    2 |     println(\_(ツ)_/¯')
      |                ^
    3 | }

@spytheman spytheman merged commit d72229f into vlang:master Aug 14, 2023
48 checks passed
Wertzui123 pushed a commit to Wertzui123/v that referenced this pull request Oct 8, 2023
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.

cgen: -cstrict -cc clang fails for just println('¯\_(ツ)_/¯')
2 participants