aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/LexNsis.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/LexNsis.cxx b/src/LexNsis.cxx
index ddbc8a83d..b26cf6b3f 100644
--- a/src/LexNsis.cxx
+++ b/src/LexNsis.cxx
@@ -195,6 +195,9 @@ static int classifyWordNsis(unsigned int start, unsigned int end, WordList *keyw
if( NsisCmp(s, "!else", bIgnoreCase ) == 0 ) // || NsisCmp(s, "!ifndef", bIgnoreCase) == 0 || NsisCmp(s, "!endif", bIgnoreCase) == 0 )
return SCE_NSIS_IFDEFINEDEF;
+ if( NsisCmp(s, "!if", bIgnoreCase ) == 0 )
+ return SCE_NSIS_IFDEFINEDEF;
+
if( NsisCmp(s, "SectionGroup", bIgnoreCase) == 0 || NsisCmp(s, "SectionGroupEnd", bIgnoreCase) == 0 ) // Covers SectionGroup and SectionGroupEnd
return SCE_NSIS_SECTIONGROUP;