ID:2519144
 
BYOND Version:513.1492
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 77.0.3865.120
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
When preprocessor macros are defined on their own line, the syntax highlighter will highlight them dark green (per the default color). However, if you include it inline at the end of another line, the syntax highlighter will gloss over it. The <dm> tags also exhibit this same behavior.

Code Snippet (if applicable) to Reproduce Problem:
mob/Login()
src << "Hello, world!"
src << add(1, 4)

proc/add(a, b)
return a + b

proc/sub(a, b) #define TEST "testing inline preprocessor"
return a - b

#ifdef TEST
#warn It definitely works, but the syntax highlighter isn't catching it.
#endif


Expected Results:
Highlighting!

Actual Results:
Nothing.

Workarounds:
As far as I can tell, the macro still works (i.e. the #warn macro is fired in the above example). It's just the preprocessor macro isn't highlighted correctly, making it extremely easy to miss.