From 3904b0b4ebb32d10a9a2de3680ff7cd3728beac1 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 14 May 2013 21:11:19 +0000 Subject: [PATCH] IDE: source editor: set elseif git-svn-id: trunk@41197 - --- ide/sourceeditor.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 3c4c3ce95b..799328d787 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -5459,7 +5459,7 @@ begin begin aDirective:=Scanner.DirectivesSorted[i]; if TCodeBuffer(aDirective^.Code)<>Code then continue; - if not (aDirective^.Kind in (lsdkAllIf+[lsdkElIfC])) then continue; + if not (aDirective^.Kind in (lsdkAllIf+[lsdkElIfC,lsdkElseIf])) then continue; Code.AbsoluteToLineCol(aDirective^.SrcPos,Y,X); if Y<1 then continue; SynState:=idnInvalid;