Viewer: Second Life Release 26.4.0.37384746592 (64bit)
Issue:
Apparently the script compiler mode selector confuses the syntax highlight colors and the line ID across different scripts because it defaults to Lua even if the script was written and compiled on LSL or LSL on Mono. As a result, the syntax highlight colors in LSL scripts go missing, and making them work seems to be very inconsistent (there might be a pattern but I haven't recognized it yet).
What I observed:
1: When you launch SLV 26.4.0 for the first time, or now also Firestorm 7.3.0.82931 (Beta), any LSL script you open will show either in default text color only, or only comments and strings will be highlighted, or the editor will fail to highlight comments and it will highlight random words from comments that match event or constant names. Typically, functions and data types will not be highlighted.
2: The ID of the first line will be 1 instead of 0, which is another indicator that the editor defaults to Lua and doesn't recognize the LSL script.
3: When this happens on the first launch of the viewer, you might or might not be able to fix the highlight colors by recompiling and saving the script, and then closing and opening it again. Launching the viewer the second time and so on, you can fix the highlights in each script by recompiling and saving it.
4: If you change the compiler to Lua, save the script, close it, then open it again, switch to any of the other modes and save it in that, it might break the highlights completely and they cannot be brought back by recompiling or closing and opening, but then they will show correctly after a relog. The "New Script" in my attached pictures is one I created last night on FS 7.3.0, today I played with it at https://maps.secondlife.com/secondlife/Lua%20Beta%20Void/216/24/23 to test the different compiler modes. As you can see, events, the default state, the integer data type and functions are not highlighted, only strings are, and in the script colors window only strings and comments are highlighted, nothing else. In the last picture you can see the same happening to an older script. I had to close the viewer and launch it again to bring back the correct highlight colors.
5: The length of the script and whether it starts with // or /* comments seem to affect this issue as well. Opening short scripts might produce this failure less often than opening long scripts (1000+ lines), and comments in the first line seem to be a contributing factor as well, but it is not a solid way to reproduce this issue. It seems to point toward the problem that the editor defaults to Lua syntax now and fails to recognize LSL scripts.
6: If you copy-paste lines in a script that is showing the highlight colors correctly, the new line will be in default text color for a moment (less than a second) before the highlight colors render. The highlight colors used to render immediately, without this flash, so there might be something in the compiler that takes some time to render the highlights. It might be the same issue that it has to recognize the syntax first.
The above are not reproduction steps, only observations. Sadly I don't have solid reproduction steps for any of this, but needless to say it is very annoying to have to recompile each script to see the highlights, and the flash from the text color to highlights in newly pasted lines is very uncomfortable to look at as well.

Photo Viewer

View photos in a modal