From 91c522877af9c016fbb862fa3f429e35ef65f824 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Mon, 6 Dec 2021 21:50:30 +0100 Subject: [PATCH] enh(nsis) Update language string pattern (#3420) --- CHANGES.md | 1 + src/languages/nsis.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 9b44a09a05..78c9fbe6c7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,7 @@ Grammars: - 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][] +- enh(nsis) Update language strings pattern to allow `!` (#3420) [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 diff --git a/src/languages/nsis.js b/src/languages/nsis.js index 40f359d731..17438c682d 100644 --- a/src/languages/nsis.js +++ b/src/languages/nsis.js @@ -167,7 +167,7 @@ export default function(hljs) { const LANGUAGES = { // $(language_strings) className: 'variable', - begin: /\$+\([\w^.:-]+\)/ + begin: /\$+\([\w^.:!-]+\)/ }; const PARAMETERS = {