浏览代码

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 年之前
父节点
当前提交
f48b84b338
共有 1 个文件被更改,包括 1 次插入4 次删除
  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;