Skip to content

Commit

Permalink
small optim
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jan 6, 2024
1 parent 6ba6cf1 commit 3fde292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions atsynedit_cmp/atsynedit_cmp_html.pas
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ function TATCompletionOptionsHtml.IsValidTag(const S: string; PartialAllowed: bo
if ListOfTags=nil then
begin
ListOfTags:= TStringList.Create;
ListOfTags.UseLocale:= false;
ListOfTags.Sorted:= true;
ListOfTags.CaseSensitive:= false;
Provider.GetTags(ListOfTags);
Expand Down
3 changes: 3 additions & 0 deletions atsynedit_cmp/atsynedit_cmp_html_provider.pas
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ procedure TATHtmlBasicProvider.GetTags(L: TStringList);
S, SKey, SVal: string;
begin
L.Clear;
L.UseLocale:= false;
L.Sorted:= true;

for S in ListAll do
Expand All @@ -119,6 +120,7 @@ procedure TATHtmlBasicProvider.GetTagProps(const ATag: string; L: TStringList);
Sep: TATStringSeparator;
begin
L.Clear;
L.UseLocale:= false;
L.Sorted:= true;

for S in ListGlobals do
Expand Down Expand Up @@ -166,6 +168,7 @@ procedure TATHtmlBasicProvider.GetTagPropValues(const ATag, AProp: string; L: TS
Sep: TATStringSeparator;
begin
L.Clear;
L.UseLocale:= false;
L.Sorted:= true;

if (AProp='type') and IsTagWithMimeType(ATag) then
Expand Down

0 comments on commit 3fde292

Please sign in to comment.