-
Notifications
You must be signed in to change notification settings - Fork 18
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
{} compile as comments even when used in text strings #46
Comments
Also, I'm having an issue with block comments not toggling on/off correctly... It just keeps adding block comments. Sometimes a restart of Sublime Text helps, but not always... This was not a problem in vanilla SublimeKSP... |
Very strange... I'll take a look at this when I get a moment. |
Here's the regex for the {} comments: SublimeKSP/ksp_compiler3/ksp_compiler.py Line 37 in 9132114
Unless I'm mistaken, it's only the character directly before the { that is checked if it is a quote. I think we'd need a more complicated regex to do proper checking for comments. Not sure about the block comments toggle! The only thing that is added by KSP to enable this is the TM_COMMENT_START_2 and TM_COMMENT_END_2 in the tmpreferences file. |
This is not supposed to happen! Example:
set_text(Label,"First section: { " & var & " } | The rest")
Actually compiles as:
set_text(Label,"First section: | The rest")
Not cool!
The text was updated successfully, but these errors were encountered: