Skip to content

Commit

Permalink
enh(nsis) Update defines pattern to allow ! (#3417)
Browse files Browse the repository at this point in the history
Defines can include `!`-characters, as seen in this example: https://nsis.sourceforge.io/Check_if_a_file_exists_at_compile_time
  • Loading branch information
idleberg committed Dec 3, 2021
1 parent e1abb9b commit b1990ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Expand Up @@ -7,6 +7,7 @@ Grammars:
- enh(swift) add SE-0290 unavailability condition (#3382) [Bradley Mackey][]
- fix(fsharp) Highlight operators, match type names only in type annotations, support quoted identifiers, and other smaller fixes. [Melvyn Laïly][]
- enh(java) add `sealed` and `non-sealed` keywords (#3386) [Bradley Mackey][]
- enh(nsis) Update defines pattern to allow `!` (#3417) [idleberg][]
- fix(clojure) Several issues with Clojure highlighting (#3397) [Björn Ebbinghaus][]
- fix(clojure) `comment` macro catches more than it should (#3395)
- fix(clojure) `$` in symbol breaks highlighting
Expand All @@ -31,7 +32,7 @@ Themes:
[Björn Ebbinghaus]: https://github.com/MrEbbinghaus
[Josh Goebel]: https://github.com/joshgoebel
[Samia Ali]: https://github.com/samiaab1990

[idleberg]: https://github.com/idleberg

## Version 11.3.1

Expand Down
2 changes: 1 addition & 1 deletion src/languages/nsis.js
Expand Up @@ -153,7 +153,7 @@ export default function(hljs) {
const DEFINES = {
// ${defines}
className: 'variable',
begin: /\$+\{[\w.:-]+\}/
begin: /\$+\{[\!\w.:-]+\}/
};

const VARIABLES = {
Expand Down

0 comments on commit b1990ce

Please sign in to comment.