Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update patterns #1032

Merged
merged 7 commits into from
Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of your changes in the component was to include . and : in the allowed characters. Could you add examples using those?

${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