From 7f211947a86a35de25d75d9e1976407422918e5f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 17 Oct 2006 12:18:55 +0000 Subject: More for !if. --- src/LexNsis.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3