Skip to content

Commit 55583fb

Browse files
authoredDec 4, 2021
NSIS: Update regex for constants pattern (#3267)
1 parent c2afa59 commit 55583fb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
 

‎components/prism-nsis.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎components/prism-nsis.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/languages/nsis/constant_feature.test

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
$(myLicenseData)
22
$(^Name)
3+
$(!Name)
34
${LANG_ENGLISH}
45
${AtLeastWin8.1}
56
${nsArray_Copy}
67
${xml::CreateNode}
78
${^EXAMPLE}
9+
${!defineifexist}
810

911
----------------------------------------------------
1012

1113
[
1214
["constant", "$(myLicenseData)"],
1315
["constant", "$(^Name)"],
16+
["constant", "$(!Name)"],
1417
["constant", "${LANG_ENGLISH}"],
1518
["constant", "${AtLeastWin8.1}"],
1619
["constant", "${nsArray_Copy}"],
1720
["constant", "${xml::CreateNode}"],
18-
["constant", "${^EXAMPLE}"]
21+
["constant", "${^EXAMPLE}"],
22+
["constant", "${!defineifexist}"]
1923
]
2024

2125
----------------------------------------------------

0 commit comments

Comments
 (0)