Index: trunk/extensions/NativePreprocessor/preprocesstoobj.c |
— | — | @@ -356,12 +356,12 @@ |
357 | 357 | |
358 | 358 | if ( parentNode ) { |
359 | 359 | if ( parentNode->commentEnd != -1 && parentNode->commentEnd == wsStart - 1 ) { |
360 | | - // Comments abutting, no change in visual end |
361 | | - parentNode->commentEnd = wsEnd; |
| 360 | + |
362 | 361 | } else { |
363 | 362 | parentNode->visualEnd = wsStart - 1; |
364 | | - parentNode->commentEnd = endPos; |
365 | 363 | } |
| 364 | + // Else comments abutting, no change in visual end |
| 365 | + parentNode->commentEnd = endPos; |
366 | 366 | } |
367 | 367 | i = endPos + 1; |
368 | 368 | addNodeWithText(comment_node, text, startPos, endPos - startPos + 1); |