mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 06:21:15 +02:00
* take care of the efSyntaxHighlight flag when checking if syntax highlighting shall be on or off, resolves #4566
git-svn-id: trunk@8193 -
This commit is contained in:
parent
caec7ab689
commit
d70521ebb1
@ -768,7 +768,7 @@ end;
|
||||
|
||||
function IDEUseSyntaxHighlight(Editor: PFileEditor): boolean; {$ifndef FPC}far;{$endif}
|
||||
begin
|
||||
IDEUseSyntaxHighlight:=(Editor^.FileName='') or MatchesFileList(NameAndExtOf(Editor^.FileName),HighlightExts);
|
||||
IDEUseSyntaxHighlight:=(Editor^.IsFlagSet(efSyntaxHighlight)) and ((Editor^.FileName='') or MatchesFileList(NameAndExtOf(Editor^.FileName),HighlightExts));
|
||||
end;
|
||||
|
||||
function IDEUseTabsPattern(Editor: PFileEditor): boolean; {$ifndef FPC}far;{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user