Skip to content

Commit

Permalink
Add support for NSIS 3.03 (#1288)
Browse files Browse the repository at this point in the history
* add missing separator

* add NSIS 3.03 support

* update tests

* remove yarn.lock

* gulp build

* restore NSIS 3.02 tests
  • Loading branch information
idleberg authored and Golmote committed Feb 9, 2018
1 parent 11f5517 commit bd1e98b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
4 changes: 2 additions & 2 deletions components/prism-nsis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/prism-nsis.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions tests/languages/nsis/important_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
!error
!execute
!finalize
!getdllversionsystem
!getdllversion
!gettlbversion
!ifdef
!ifmacrodef
!ifmacrondef
Expand All @@ -25,6 +26,7 @@
!pragma
!searchparse
!searchreplace
!system
!tempfile
!undef
!verbose
Expand All @@ -45,7 +47,8 @@
["important", "!error"],
["important", "!execute"],
["important", "!finalize"],
["important", "!getdllversionsystem"],
["important", "!getdllversion"],
["important", "!gettlbversion"],
["important", "!ifdef"],
["important", "!ifmacrodef"],
["important", "!ifmacrondef"],
Expand All @@ -60,6 +63,7 @@
["important", "!pragma"],
["important", "!searchparse"],
["important", "!searchreplace"],
["important", "!system"],
["important", "!tempfile"],
["important", "!undef"],
["important", "!verbose"],
Expand Down
22 changes: 18 additions & 4 deletions tests/languages/nsis/keyword_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ EnumRegValue
Exch
Exec
ExecShell
ExecShellWait
ExecWait
ExecShellWait
ExpandEnvStrings
File
FileBufSize
Expand All @@ -53,10 +53,10 @@ FileRead
FileReadByte
FileReadUTF16LE
FileReadWord
FileWriteUTF16LE
FileSeek
FileWrite
FileWriteByte
FileWriteUTF16LE
FileWriteWord
FindClose
FindFirst
Expand Down Expand Up @@ -95,10 +95,16 @@ InstProgressFlags
InstType
InstTypeGetText
InstTypeSetText
Int64Cmp
Int64CmpU
Int64Fmt
IntCmp
IntCmpU
IntFmt
IntOp
IntPtrCmp
IntPtrCmpU
IntPtrOp
IsWindow
LangDLL
LangString
Expand Down Expand Up @@ -169,6 +175,7 @@ SetFileAttributes
SetFont
SetOutPath
SetOverwrite
SetPluginUnload
SetRebootFlag
SetRegView
SetShellVarContext
Expand Down Expand Up @@ -259,8 +266,8 @@ XPStyle
["keyword", "Exch"],
["keyword", "Exec"],
["keyword", "ExecShell"],
["keyword", "ExecShellWait"],
["keyword", "ExecWait"],
["keyword", "ExecShellWait"],
["keyword", "ExpandEnvStrings"],
["keyword", "File"],
["keyword", "FileBufSize"],
Expand All @@ -271,10 +278,10 @@ XPStyle
["keyword", "FileReadByte"],
["keyword", "FileReadUTF16LE"],
["keyword", "FileReadWord"],
["keyword", "FileWriteUTF16LE"],
["keyword", "FileSeek"],
["keyword", "FileWrite"],
["keyword", "FileWriteByte"],
["keyword", "FileWriteUTF16LE"],
["keyword", "FileWriteWord"],
["keyword", "FindClose"],
["keyword", "FindFirst"],
Expand Down Expand Up @@ -313,10 +320,16 @@ XPStyle
["keyword", "InstType"],
["keyword", "InstTypeGetText"],
["keyword", "InstTypeSetText"],
["keyword", "Int64Cmp"],
["keyword", "Int64CmpU"],
["keyword", "Int64Fmt"],
["keyword", "IntCmp"],
["keyword", "IntCmpU"],
["keyword", "IntFmt"],
["keyword", "IntOp"],
["keyword", "IntPtrCmp"],
["keyword", "IntPtrCmpU"],
["keyword", "IntPtrOp"],
["keyword", "IsWindow"],
["keyword", "LangDLL"],
["keyword", "LangString"],
Expand Down Expand Up @@ -387,6 +400,7 @@ XPStyle
["keyword", "SetFont"],
["keyword", "SetOutPath"],
["keyword", "SetOverwrite"],
["keyword", "SetPluginUnload"],
["keyword", "SetRebootFlag"],
["keyword", "SetRegView"],
["keyword", "SetShellVarContext"],
Expand Down

0 comments on commit bd1e98b

Please sign in to comment.