Jelajahi Sumber

Fix the fix: the final CommitStyle was only missing for key/value sections and the new squiggllies weren't ok since the highlighter doesn't know which directives accept constants and which don't.

Martijn Laan 4 tahun lalu
induk
melakukan
f48b84b338
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  1. 1 4
      Components/ScintStylerInnoSetup.pas

+ 1 - 4
Components/ScintStylerInnoSetup.pas

@@ -1489,6 +1489,7 @@ begin
   else begin
     BraceLevel := 0;
     StyleConstsUntilChars([], stDefault, BraceLevel);
+    CommitStyle(stDefault);
   end;
 end;
 
@@ -1633,10 +1634,6 @@ begin
         CommitStyle(stConstant);
     end;
   end;
-  if BraceLevel = 0 then
-    CommitStyle(NonConstStyle)
-  else
-    CommitStyleSqPending(stConstant);
 end;
 
 procedure TInnoSetupStyler.StyleNeeded;