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

C++ Multiline String not coloring properly #168

Open
sciencejiho opened this issue Jul 7, 2021 · 1 comment
Open

C++ Multiline String not coloring properly #168

sciencejiho opened this issue Jul 7, 2021 · 1 comment
Labels

Comments

@sciencejiho
Copy link

Describe the bug
Declaration of string which uses multiple line has a bug where its syntax highlighting is malfunctioning.

To Reproduce
Try declaring a long string using multiple lines, and syntax does not color properly.
If condense them into single line, everything is back to okay.

Example code
If applicable, add a small code snippet which causes the issue.

The strings below will have wrong color.

const char glblStageData[] = "\
########\n\
# .. p #\n\
# oo   #\n\
#      #\n\
########";

The right color only occurs when the code looks like this:

const char glblStageData[] = "\########\n\# .. p #\n\# oo   #\n\#      #\n\########";

Screenshot
image
Normally, the string should print out as yellow on my customization.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Tried on Chrome, Brave
  • Version: 1.26.74 Chromium
@AndiDittrich AndiDittrich transferred this issue from EnlighterJS/Plugin.WordPress Jul 9, 2021
@AndiDittrich
Copy link
Member

Hi @sciencejiho ,

multiline strings or C++11 raw string literals are not supported yet - contributions are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants