summaryrefslogtreecommitdiff
path: root/support/highlight/langDefs/nsi.lang
blob: 5767926a3e64bef10d0564d83aeecd79a07a7efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file was generated by context2highlight from the original ConTEXT highlighting scheme "NsisScript.chl"
# THIS FILE HAS NOT BEEN TESTED AND MAY NEED SOME MORE WORK
# Credits go to the original author of the CHL file, who is listed below.
# ConTEXT:   http://context.cx/
# Highlight: http://www.andre-simon.de/
#
# Beginning of converted content...
#////////////////////////////////////////////////////////////////////////////
#
# NSIS Script Highlighter written by Marc Noirot, noirotm AT free DOT fr
#
# Updated for NSIS 1.94 by Vedran Miletic, riva_station AT yahoo DOT com
#
# ConTEXT, Winamp2, Winamp3, NSIS, so fabulous apps :)
#
#////////////////////////////////////////////////////////////////////////////

$DESCRIPTION=NSIS

$IGNORECASE=false

$SL_COMMENT=; #

$KEYWORDS(kwa)=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

#functions
$KEYWORDS(kwb)=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

#variables and constants
$KEYWORDS(kwc)=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

$STRINGDELIMITERS=" '

$SYMBOLS= ( ) [ ] { } ,  . : & | < >   = / *  %  + - ~

# Highlight variable names like ${name}. Only the name is highlighted as keyword.
$KEYWORDS(kwd)=regex((\$\{\w+\}))

# Highlight variables beginning with $, @ or %
$KEYWORDS(kwd)=regex(\$\w+)
$KEYWORDS(kwc)=regex(\!\w+)