"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/nsis.lang" (12 May 2020, 3745 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "nsis.lang": 3.53_vs_3.54.

    1 
    2 Description="NSIS"
    3 
    4 Categories = {"config", "script"}
    5 
    6 Keywords={
    7   { Id=1,
    8     List={"OutFile", "Name", "Caption", "SubCaption", "BrandingText", "Icon",
    9     "WindowIcon", "BGGradient", "SilentInstall", "SilentUnInstall", "CRCCheck",
   10     "MiscButtonText", "InstallButtonText", "FileErrorText", "InstallDir",
   11     "InstallDirRegKey", "LicenseText", "LicenseData", "ComponentText", "InstType",
   12     "EnabledBitmap", "DisabledBitmap", "SpaceTexts", "DirShow", "DirText",
   13     "AllowRootDirInstall", "InstallColors", "InstProgressFlags", "AutoCloseWindow",
   14     "ShowInstDetails", "DetailsButtonText", "CompletedText", "UninstallText",
   15     "UninstallIcon", "UninstallCaption", "UninstallSubCaption", "ShowUninstDetails",
   16     "UninstallButtonText", "SetOverwrite", "SetCompress", "SetDatablockOptimize",
   17     "SetDateSave", "Section", "SectionIn", "SectionEnd", "SectionDivider",
   18     "AddSize", "Function", "FunctionEnd", "XPStyle", "Var", "goto", "end"},
   19   },
   20   { Id=2,
   21     List={"SetOutPath", "File", "Exec", "ExecWait", "ExecShell", "Rename",
   22     "Delete", "RMDir", "WriteRegStr", "WriteRegExpandStr", "WriteRegDWORD",
   23     "WriteRegBin", "WriteINIStr", "ReadRegStr", "ReadRegDWORD", "ReadINIStr",
   24     "ReadEnvStr", "ExpandEnvStrings", "DeleteRegValue", "DeleteRegKey",
   25     "EnumRegKey", "EnumRegValue", "DeleteINISec", "DeleteINIStr", "CreateDirectory",
   26     "CopyFiles", "SetFileAttributes", "CreateShortCut", "GetFullPathName",
   27     "SearchPath", "GetTempFileName", "CallInstDLL", "RegDLL", "UnRegDLL",
   28     "GetDLLVersion", "GetDLLVersionLocal", "GetFileTime", "GetFileTimeLocal",
   29     "Goto", "Call", "Return", "IfErrors", "ClearErrors", "SetErrors", "FindWindow",
   30     "SendMessage", "IsWindow", "IfFileExists", "MessageBox", "StrCmp", "IntCmp",
   31     "IntCmpU", "Abort", "Quit", "GetFunctionAddress", "GetLabelAddress",
   32     "GetCurrentAddress", "FindFirst", "FindNext", "FindClose", "FileOpen",
   33     "FileClose", "FileRead", "FileWrite", "FileReadByte", "FileWriteByte",
   34     "FileSeek", "SetDetailsView", "SetDetailsPrint", "SetAutoClose", "DetailPrint",
   35     "Sleep", "BringToFront", "HideWindow", "StrCpy", "StrLen", "Push",
   36     "Pop", "Exch", "IntOp", "IntFmt", "RebootIf", "RebootFlag", "SetRebootFlag",
   37     "WriteUninstaller"},
   38   },
   39   { Id=3,
   40     List={"SW_SHOWNORMAL", "SW_SHOWMAXIMIZED", "SW_SHOWMINIMIZED", "HKCR",
   41     "HKEY_CLASSES_ROOT", "HKLM", "HKEY_LOCAL_MACHINE", "HKCU", "HKEY_CURRENT_USER",
   42     "HKU", "HKEY_USERS", "HKCC", "HKEY_CURRENT_CONFIG", "HKDD", "HKEY_DYN_DATA",
   43     "HKPD", "HKEY_PERFORMANCE_DATA", "MB_OK", "MB_OKCANCEL", "MB_ABORTRETRYIGNORE",
   44     "MB_RETRYCANCEL", "MB_YESNO", "MB_YESNOCANCEL", "MB_ICONEXCLAMATION",
   45     "MB_ICONQUESTION", "MB_ICONSTOP", "MB_TOPMOST", "MB_SETFOREGROUND", "MB_RIGHT",
   46     "IDABORT", "IDCANCEL", "IDIGNORE", "IDNO", "IDOK", "IDRETRY", "IDYES", "NORMAL",
   47     "FILE_ATTRIBUTE_NORMAL", "ARCHIVE", "FILE_ATTRIBUTE_ARCHIVE", "HIDDEN",
   48     "FILE_ATTRIBUTE_HIDDEN", "OFFLINE", "FILE_ATTRIBUTE_OFFLINE", "READONLY",
   49     "FILE_ATTRIBUTE_READONLY", "SYSTEM", "FILE_ATTRIBUTE_SYSTEM", "TEMPORARY",
   50     "FILE_ATTRIBUTE_TEMPORARY", "ALT", "CONTROL", "EXT", "SHIFT"},
   51   },
   52   { Id=3,
   53     Regex=[[\w+\:]],
   54   },
   55   { Id=4,
   56     Regex=[[(\$\{[\w\:]+\})]],
   57   },
   58   { Id=4,
   59     Regex=[[\$\w+]],
   60   },
   61   { Id=4,
   62     Regex=[[\!\w+]],
   63   }
   64 }
   65 
   66 
   67 Strings={
   68   Delimiter=[["|'|`]],
   69   Escape = [[ \$ ]],
   70   Interpolation=[[ (\$\{\w+\}) ]],
   71 }
   72 
   73 IgnoreCase=false
   74 
   75 Comments={
   76   { Block=false,
   77     Delimiter= { [[;|\#]] },
   78   },
   79 }
   80 
   81 Operators=[[\(|\)|\[|\]|\{|\}|\,|\.|\:|\&|<|>|\|\=|\/|\*|\%|\+|\-|\~]]
   82 
   83 
   84 -- fix recognition of $
   85 function OnStateChange(oldState, newState, token, groupID)
   86   if  (string.sub(token,1,1) =="$" and oldState==HL_STRING and newState==HL_KEYWORD) then
   87     return HL_INTERPOLATION
   88   end
   89   return newState
   90 end