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

1.6 error in comment handling inside of strings #2641

Closed
dieterm57 opened this issue Feb 13, 2015 · 4 comments
Closed

1.6 error in comment handling inside of strings #2641

dieterm57 opened this issue Feb 13, 2015 · 4 comments
Assignees
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@dieterm57
Copy link

Following code does not compile:

  Serial.println("/\\");
  Serial.println("//");

but insert a comment in between:

  Serial.println("/\\");
  //\
  Serial.println("//");

... and it does
wtf?

@matthijskooijman
Copy link
Collaborator

Could you provide the compiler error messages you are getting?

@dieterm57
Copy link
Author

editor

sketch_feb13b.ino:10:3: error: missing terminating " character
sketch_feb13b.ino: In function 'void loop()':
sketch_feb13b.ino:11:1: error: expected primary-expression before '}' token
Error compiling.

@ffissore
Copy link
Contributor

This is yet another bug related to the preprocessor. Please try one of the builds from #2636

@ffissore ffissore added the Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation label Feb 14, 2015
@ffissore ffissore self-assigned this Feb 14, 2015
@ffissore
Copy link
Contributor

Fixed by #3779

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Projects
None yet
Development

No branches or pull requests

3 participants