@ 261105.1

191030.2.1.3 · ab639e1b7412fa09f5302cf3cfcfbabef883cf6b

EditorConfig: Lua

Enforce consistent code styles for all Lua files (.lua, .lang, .theme):

* Indent: 2 spaces.
* Trim trailing whitespace.
* Insert final new line.
* UTF-8 encoding.

Manually fix all scripts that didn't pass EClint validation (256 files).

reading declarations

Changes to langDefs/nsis.lang. All files

langDefs/nsis.lang

@@ -5,48 +5,48 @@ Categories = {"config", "script"}  Keywords={   { Id=1,-    List={"OutFile", "Name", "Caption", "SubCaption", "BrandingText", "Icon", -    "WindowIcon", "BGGradient", "SilentInstall", "SilentUnInstall", "CRCCheck", -    "MiscButtonText", "InstallButtonText", "FileErrorText", "InstallDir", -    "InstallDirRegKey", "LicenseText", "LicenseData", "ComponentText", "InstType", -    "EnabledBitmap", "DisabledBitmap", "SpaceTexts", "DirShow", "DirText", -    "AllowRootDirInstall", "InstallColors", "InstProgressFlags", "AutoCloseWindow", -    "ShowInstDetails", "DetailsButtonText", "CompletedText", "UninstallText", -    "UninstallIcon", "UninstallCaption", "UninstallSubCaption", "ShowUninstDetails", -    "UninstallButtonText", "SetOverwrite", "SetCompress", "SetDatablockOptimize", -    "SetDateSave", "Section", "SectionIn", "SectionEnd", "SectionDivider", +    List={"OutFile", "Name", "Caption", "SubCaption", "BrandingText", "Icon",+    "WindowIcon", "BGGradient", "SilentInstall", "SilentUnInstall", "CRCCheck",+    "MiscButtonText", "InstallButtonText", "FileErrorText", "InstallDir",+    "InstallDirRegKey", "LicenseText", "LicenseData", "ComponentText", "InstType",+    "EnabledBitmap", "DisabledBitmap", "SpaceTexts", "DirShow", "DirText",+    "AllowRootDirInstall", "InstallColors", "InstProgressFlags", "AutoCloseWindow",+    "ShowInstDetails", "DetailsButtonText", "CompletedText", "UninstallText",+    "UninstallIcon", "UninstallCaption", "UninstallSubCaption", "ShowUninstDetails",+    "UninstallButtonText", "SetOverwrite", "SetCompress", "SetDatablockOptimize",+    "SetDateSave", "Section", "SectionIn", "SectionEnd", "SectionDivider",     "AddSize", "Function", "FunctionEnd", "XPStyle", "Var", "goto", "end"},   },   { Id=2,-    List={"SetOutPath", "File", "Exec", "ExecWait", "ExecShell", "Rename", -    "Delete", "RMDir", "WriteRegStr", "WriteRegExpandStr", "WriteRegDWORD", -    "WriteRegBin", "WriteINIStr", "ReadRegStr", "ReadRegDWORD", "ReadINIStr", -    "ReadEnvStr", "ExpandEnvStrings", "DeleteRegValue", "DeleteRegKey", -    "EnumRegKey", "EnumRegValue", "DeleteINISec", "DeleteINIStr", "CreateDirectory", -    "CopyFiles", "SetFileAttributes", "CreateShortCut", "GetFullPathName", -    "SearchPath", "GetTempFileName", "CallInstDLL", "RegDLL", "UnRegDLL", -    "GetDLLVersion", "GetDLLVersionLocal", "GetFileTime", "GetFileTimeLocal", -    "Goto", "Call", "Return", "IfErrors", "ClearErrors", "SetErrors", "FindWindow", -    "SendMessage", "IsWindow", "IfFileExists", "MessageBox", "StrCmp", "IntCmp", -    "IntCmpU", "Abort", "Quit", "GetFunctionAddress", "GetLabelAddress", -    "GetCurrentAddress", "FindFirst", "FindNext", "FindClose", "FileOpen", -    "FileClose", "FileRead", "FileWrite", "FileReadByte", "FileWriteByte", -    "FileSeek", "SetDetailsView", "SetDetailsPrint", "SetAutoClose", "DetailPrint", -    "Sleep", "BringToFront", "HideWindow", "StrCpy", "StrLen", "Push", -    "Pop", "Exch", "IntOp", "IntFmt", "RebootIf", "RebootFlag", "SetRebootFlag", +    List={"SetOutPath", "File", "Exec", "ExecWait", "ExecShell", "Rename",+    "Delete", "RMDir", "WriteRegStr", "WriteRegExpandStr", "WriteRegDWORD",+    "WriteRegBin", "WriteINIStr", "ReadRegStr", "ReadRegDWORD", "ReadINIStr",+    "ReadEnvStr", "ExpandEnvStrings", "DeleteRegValue", "DeleteRegKey",+    "EnumRegKey", "EnumRegValue", "DeleteINISec", "DeleteINIStr", "CreateDirectory",+    "CopyFiles", "SetFileAttributes", "CreateShortCut", "GetFullPathName",+    "SearchPath", "GetTempFileName", "CallInstDLL", "RegDLL", "UnRegDLL",+    "GetDLLVersion", "GetDLLVersionLocal", "GetFileTime", "GetFileTimeLocal",+    "Goto", "Call", "Return", "IfErrors", "ClearErrors", "SetErrors", "FindWindow",+    "SendMessage", "IsWindow", "IfFileExists", "MessageBox", "StrCmp", "IntCmp",+    "IntCmpU", "Abort", "Quit", "GetFunctionAddress", "GetLabelAddress",+    "GetCurrentAddress", "FindFirst", "FindNext", "FindClose", "FileOpen",+    "FileClose", "FileRead", "FileWrite", "FileReadByte", "FileWriteByte",+    "FileSeek", "SetDetailsView", "SetDetailsPrint", "SetAutoClose", "DetailPrint",+    "Sleep", "BringToFront", "HideWindow", "StrCpy", "StrLen", "Push",+    "Pop", "Exch", "IntOp", "IntFmt", "RebootIf", "RebootFlag", "SetRebootFlag",     "WriteUninstaller"},   },   { Id=3,-    List={"SW_SHOWNORMAL", "SW_SHOWMAXIMIZED", "SW_SHOWMINIMIZED", "HKCR", -    "HKEY_CLASSES_ROOT", "HKLM", "HKEY_LOCAL_MACHINE", "HKCU", "HKEY_CURRENT_USER", -    "HKU", "HKEY_USERS", "HKCC", "HKEY_CURRENT_CONFIG", "HKDD", "HKEY_DYN_DATA", -    "HKPD", "HKEY_PERFORMANCE_DATA", "MB_OK", "MB_OKCANCEL", "MB_ABORTRETRYIGNORE", -    "MB_RETRYCANCEL", "MB_YESNO", "MB_YESNOCANCEL", "MB_ICONEXCLAMATION", -    "MB_ICONQUESTION", "MB_ICONSTOP", "MB_TOPMOST", "MB_SETFOREGROUND", "MB_RIGHT", -    "IDABORT", "IDCANCEL", "IDIGNORE", "IDNO", "IDOK", "IDRETRY", "IDYES", "NORMAL", -    "FILE_ATTRIBUTE_NORMAL", "ARCHIVE", "FILE_ATTRIBUTE_ARCHIVE", "HIDDEN", -    "FILE_ATTRIBUTE_HIDDEN", "OFFLINE", "FILE_ATTRIBUTE_OFFLINE", "READONLY", -    "FILE_ATTRIBUTE_READONLY", "SYSTEM", "FILE_ATTRIBUTE_SYSTEM", "TEMPORARY", +    List={"SW_SHOWNORMAL", "SW_SHOWMAXIMIZED", "SW_SHOWMINIMIZED", "HKCR",+    "HKEY_CLASSES_ROOT", "HKLM", "HKEY_LOCAL_MACHINE", "HKCU", "HKEY_CURRENT_USER",+    "HKU", "HKEY_USERS", "HKCC", "HKEY_CURRENT_CONFIG", "HKDD", "HKEY_DYN_DATA",+    "HKPD", "HKEY_PERFORMANCE_DATA", "MB_OK", "MB_OKCANCEL", "MB_ABORTRETRYIGNORE",+    "MB_RETRYCANCEL", "MB_YESNO", "MB_YESNOCANCEL", "MB_ICONEXCLAMATION",+    "MB_ICONQUESTION", "MB_ICONSTOP", "MB_TOPMOST", "MB_SETFOREGROUND", "MB_RIGHT",+    "IDABORT", "IDCANCEL", "IDIGNORE", "IDNO", "IDOK", "IDRETRY", "IDYES", "NORMAL",+    "FILE_ATTRIBUTE_NORMAL", "ARCHIVE", "FILE_ATTRIBUTE_ARCHIVE", "HIDDEN",+    "FILE_ATTRIBUTE_HIDDEN", "OFFLINE", "FILE_ATTRIBUTE_OFFLINE", "READONLY",+    "FILE_ATTRIBUTE_READONLY", "SYSTEM", "FILE_ATTRIBUTE_SYSTEM", "TEMPORARY",     "FILE_ATTRIBUTE_TEMPORARY", "ALT", "CONTROL", "EXT", "SHIFT"},   },   { Id=3,@@ -83,8 +83,8 @@ Operators=[[\(|\)|\[|\]|\{|\}|\,|\.|\:|\&|<|>|\|\=|\/|\*|\%|\+|\-|\~]]  -- fix recognition of $ function OnStateChange(oldState, newState, token, groupID)-   if  (string.sub(token,1,1) =="$" and oldState==HL_STRING and newState==HL_KEYWORD) then-      return HL_INTERPOLATION-   end   -   return newState+  if  (string.sub(token,1,1) =="$" and oldState==HL_STRING and newState==HL_KEYWORD) then+    return HL_INTERPOLATION+  end+  return newState end