View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001314 | Inno Script Studio | Feature | public | 2013-09-10 19:05 | 2015-07-30 15:43 |
Reporter | Mythran | Assigned To | timchilvers | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 2.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0001314: #pragma spansymbol - Syntax Highlighting | ||||
Description | Syntax highlighting is not correctly displaying the colorized text for ISPP line spanning when the spansymbol is changed from the default '\' character to another symbol, such as the pipe '|'. Also, the default spansymbol of '\' is erroneously recognized and lines following it are incorrectly colorized if a different symbol is declared with the spansymbol pragma. | ||||
Steps To Reproduce | Notice, when you copy and paste the following into a ISS file, the lines following the first pipe '|' symbol are not colorized correctly as they would be if they were either on the same line as the #define, or if a backslash character was used in place of the pipe on those lines. If you just comment out the #pragma line below, you'd get a compiler error if you tried to compile, but the colorizer indicates that the lines are continuations of the previous line: [Code] #pragma spansymbol '|'; #define public GetVersionInfo(str AssemblyPath) | ParseVersion(AssemblyPath, Local[0], Local[1], Local[2], Local[3]), | Str(Local[0]) + '.' + Str(Local[1]); | ||||
Tags | ispp, spansymbol, syntax highlighting | ||||
|
|
|
|
|
Also, something I just noticed about this issue, the custom spansymbol shows the squiggly line under them when used for line continuation. Note/fix of my example: The code WILL NOT even compile with the example with the default span symbol I wrote above. I placed a semi-colon comment under [Code] which is invalid...it should have been C-style comments instead. Just a FYI. |
|
The syntax highlighter has the default span symbol coded in to the functions to style the spanned lines. Need to devise a way to check for the #pragma spansymbol entry and set the function to use that instead. |
|
If/when this gets addressed, it would also be nice that the syntax highlighter also recognize and enforce the syntax if the line-span symbol was changed by an included ISS as well. Currently, of course, it doesn't work... |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-09-10 19:05 | Mythran | New Issue | |
2013-09-10 20:15 | Mythran | File Added: ExampleWithCustomSpansymbol.png | |
2013-09-10 20:15 | Mythran | File Added: ExampleWithDefaultSpansymbol.png | |
2013-09-10 20:30 | Mythran | Note Added: 0001116 | |
2013-09-10 20:30 | Mythran | Tag Attached: ispp | |
2013-09-10 20:30 | Mythran | Tag Attached: spansymbol | |
2013-09-10 20:30 | Mythran | Tag Attached: syntax highlighting | |
2013-09-10 21:07 | timchilvers | Note Added: 0001117 | |
2013-09-10 21:07 | timchilvers | Assigned To | => timchilvers |
2013-09-10 21:07 | timchilvers | Status | new => confirmed |
2015-07-30 15:43 | Mythran | Note Added: 0001149 |