Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Oct 26, 2024
1 parent 9df8ea0 commit 8150cca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Projects/Src/IDE.ScintStylerInnoSetup.pas
Original file line number Diff line number Diff line change
Expand Up @@ -591,16 +591,16 @@ constructor TInnoSetupStyler.Create(AOwner: TComponent);
BuildKeywordsWordList(scIcons, IconsSectionParameters);
BuildKeywordsWordList(scINI, INISectionParameters);
BuildKeywordsWordList(scInstallDelete, DeleteSectionParameters);
BuildKeywordsWordListFromTypeInfo(scLangOptions, TypeInfo(TLangOptionsSectionDirective), 2);
BuildKeywordsWordListFromTypeInfo(scLangOptions, TypeInfo(TLangOptionsSectionDirective), LangOptionsSectionDirectivePrefixLength);
BuildKeywordsWordList(scLanguages, LanguagesSectionParameters);
BuildKeywordsWordList(scRegistry, RegistrySectionParameters);
BuildKeywordsWordList(scRun, RunSectionParameters);
BuildKeywordsWordListFromTypeInfo(scSetup, TypeInfo(TSetupSectionDirective), 2);
BuildKeywordsWordListFromTypeInfo(scSetup, TypeInfo(TSetupSectionDirective), SetupSectionDirectivePrefixLength);
BuildKeywordsWordList(scTasks, TasksSectionParameters);
BuildKeywordsWordList(scTypes, TypesSectionParameters);
BuildKeywordsWordList(scUninstallDelete, DeleteSectionParameters);
BuildKeywordsWordList(scUninstallRun, UninstallRunSectionParameters);
BuildKeywordsWordListFromTypeInfo(scMessages, TypeInfo(TSetupMessageID), 3);
BuildKeywordsWordListFromTypeInfo(scMessages, TypeInfo(TSetupMessageID), SetupMessageIDPrefixLength);
end;

procedure BuildScriptLists;
Expand Down
2 changes: 2 additions & 0 deletions Projects/Src/Shared.LangOptionsSectionDirectives.pas
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

interface

const
LangOptionsSectionDirectivePrefixLength = 2;
type
TLangOptionsSectionDirective = (
lsCopyrightFontName,
Expand Down
2 changes: 2 additions & 0 deletions Projects/Src/Shared.SetupMessageIDs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ interface
{ Note: When any messages are added/deleted/changed, MessagesHdrID needs to be
updated in Struct.pas }

const
SetupMessageIDPrefixLength = 3;
type
TSetupMessageID = (
msgAbortRetryIgnoreCancel,
Expand Down
2 changes: 2 additions & 0 deletions Projects/Src/Shared.SetupSectionDirectives.pas
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

interface

const
SetupSectionDirectivePrefixLength = 2;
type
TSetupSectionDirective = (
ssAllowCancelDuringInstall,
Expand Down

0 comments on commit 8150cca

Please sign in to comment.