Skip to content

Commit b1990ce

Browse files
authored
enh(nsis) Update defines pattern to allow ! (#3417)
Defines can include `!`-characters, as seen in this example: https://nsis.sourceforge.io/Check_if_a_file_exists_at_compile_time
1 parent e1abb9b commit b1990ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Grammars:
77
- enh(swift) add SE-0290 unavailability condition (#3382) [Bradley Mackey][]
88
- fix(fsharp) Highlight operators, match type names only in type annotations, support quoted identifiers, and other smaller fixes. [Melvyn Laïly][]
99
- enh(java) add `sealed` and `non-sealed` keywords (#3386) [Bradley Mackey][]
10+
- enh(nsis) Update defines pattern to allow `!` (#3417) [idleberg][]
1011
- fix(clojure) Several issues with Clojure highlighting (#3397) [Björn Ebbinghaus][]
1112
- fix(clojure) `comment` macro catches more than it should (#3395)
1213
- fix(clojure) `$` in symbol breaks highlighting
@@ -31,7 +32,7 @@ Themes:
3132
[Björn Ebbinghaus]: https://github.com/MrEbbinghaus
3233
[Josh Goebel]: https://github.com/joshgoebel
3334
[Samia Ali]: https://github.com/samiaab1990
34-
35+
[idleberg]: https://github.com/idleberg
3536

3637
## Version 11.3.1
3738

src/languages/nsis.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default function(hljs) {
153153
const DEFINES = {
154154
// ${defines}
155155
className: 'variable',
156-
begin: /\$+\{[\w.:-]+\}/
156+
begin: /\$+\{[\!\w.:-]+\}/
157157
};
158158

159159
const VARIABLES = {

0 commit comments

Comments
 (0)