Skip to content

Commit

Permalink
add !assert command
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jul 2, 2023
1 parent c0c1c67 commit f839274
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions snippets/core.NSIS.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
"leftLabelHTML": "<span class='syntax--keyword'>!</span>",
"prefix": "appendfile"
},
"!assert": {
"body": "!assert \"${1:value}\" \"${2:message}\"$0",
"description": "Usage: !assert value [op value2] message",
"descriptionMoreURL": "https://idleberg.github.io/NSIS.docset/Contents/Resources/Documents/html/Commands/!assert.html?utm_source=atom&utm_content=snippet",
"leftLabelHTML": "<span class='syntax--keyword'>!</span>",
"prefix": "assert"
},
"!cd": {
"body": "!cd \"${1:new_path}\"$0",
"description": "Usage: !cd absolute_or_relative_new_directory",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/nsis.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</dict>
<dict>
<key>match</key>
<string>^\s*(?i)\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning)\b</string>
<string>^\s*(?i)\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning)\b</string>
<key>name</key>
<string>keyword.other.nsis</string>
</dict>
Expand Down

0 comments on commit f839274

Please sign in to comment.