From 58dd9c64db83ca8fddaef9801d18f1e8541af9a0 Mon Sep 17 00:00:00 2001 From: Martin <7252614+Lhoerion@users.noreply.github.com> Date: Tue, 19 May 2020 19:32:11 +0200 Subject: [PATCH 1/3] fix(typescript) Add missing read-only keyword --- src/languages/typescript.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/languages/typescript.js b/src/languages/typescript.js index c912157cdc..e44ee9a86f 100644 --- a/src/languages/typescript.js +++ b/src/languages/typescript.js @@ -31,7 +31,8 @@ export default function(hljs) { "protected", "implements", "declare", - "abstract" + "abstract", + "readonly" ]; var KEYWORDS = { $pattern: ECMAScript.IDENT_RE, From d1097b93f61433a63d2e417a42e6a586a2e1c097 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Tue, 19 May 2020 13:41:47 -0400 Subject: [PATCH 2/3] Update CHANGES.md --- CHANGES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 294ba0defb..31bbaea312 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,7 @@ Deprecations: Language Improvements: +- fix(typescript) add `readonly` keyword (#2562) [Martin (Lhoerion)][] - fix(javascript) fix regex inside parens after a non-regex (#2530) [Josh Goebel][] - enh(typescript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][] - enh(javascript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][] @@ -49,6 +50,7 @@ Language Improvements: [Sam Rawlins]: https://github.com/srawlins [Sergey Prokhorov]: https://github.com/seriyps [Nils Knappmeier]: https://github.com/nknapp +[Martin]: https://github.com/Lhoerion ## Version 10.0.2 From fd031968aa0f79b188c47c2c4759229bea4e4d4f Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Tue, 19 May 2020 13:42:21 -0400 Subject: [PATCH 3/3] Update CHANGES.md --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 31bbaea312..efb45e530b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -50,7 +50,7 @@ Language Improvements: [Sam Rawlins]: https://github.com/srawlins [Sergey Prokhorov]: https://github.com/seriyps [Nils Knappmeier]: https://github.com/nknapp -[Martin]: https://github.com/Lhoerion +[Martin (Lhoerion)]: https://github.com/Lhoerion ## Version 10.0.2