Skip to content

Commit

Permalink
update patterns (PrismJS#1032)
Browse files Browse the repository at this point in the history
Updated NSIS
  • Loading branch information
idleberg authored and Golmote committed Oct 11, 2016
1 parent d1144d0 commit 76ba1b8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
15 changes: 11 additions & 4 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.

19 changes: 19 additions & 0 deletions tests/languages/nsis/constant_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$(myLicenseData)
${LANG_ENGLISH}
${AtLeastWin8.1}
${nsArray_Copy}
${xml::CreateNode}

----------------------------------------------------

[
["constant", "$(myLicenseData)"],
["constant", "${LANG_ENGLISH}"],
["constant", "${AtLeastWin8.1}"],
["constant", "${nsArray_Copy}"],
["constant", "${xml::CreateNode}"]
]

----------------------------------------------------

Checks for constants.
8 changes: 3 additions & 5 deletions tests/languages/nsis/variable_feature.test
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
$INTERNET_CACHE
$LANGUAGE
$(myLicenseData)
${LANG_ENGLISH}

----------------------------------------------------

[
["variable", "$LANGUAGE"],
["variable", "$(myLicenseData)"],
["variable", "${LANG_ENGLISH}"]
["variable", "$INTERNET_CACHE"],
["variable", "$LANGUAGE"]
]

----------------------------------------------------
Expand Down

0 comments on commit 76ba1b8

Please sign in to comment.