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

Prevent multi-line preprocessor define from messing up highlighting #5

Open
bird-get opened this issue Apr 13, 2019 · 0 comments
Open

Comments

@bird-get
Copy link
Owner

It seems that multi-line preprocessor defines mess up the highlighting in the native SL editor:

#define HELP_MESSAGE "usage: partgen [-h]

A particle generator. Creates particle emitters with tweakable parameters.
 
optional arguments:
  -h, --help    show help and exit" <---- this double quote does not register properly

This breaks the highlighting for the rest of the code.

This could be fixed by adding //" to the end each time this is defined:

#define HELP_MESSAGE "usage: partgen [-h]

A particle generator. Creates particle emitters with tweakable parameters.
 
optional arguments:
  -h, --help    show help and exit"//" <--- Like so!

It looks pretty bad, but it's better than having no highlighting. An alternative would be to use different line breaks for each line.

@bird-get bird-get added this to To do in Development via automation Apr 13, 2019
@bird-get bird-get added this to the First marketplace release milestone Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development
  
To do
Development

No branches or pull requests

1 participant