Skip to content

Commit 278a610

Browse files
authored
fix(typescript) Add missing readonly keyword (#2562)
1 parent e9e7b44 commit 278a610

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Deprecations:
2121

2222
Language Improvements:
2323

24+
- fix(typescript) add `readonly` keyword (#2562) [Martin (Lhoerion)][]
2425
- fix(javascript) fix regex inside parens after a non-regex (#2530) [Josh Goebel][]
2526
- enh(typescript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
2627
- enh(javascript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
@@ -49,6 +50,7 @@ Language Improvements:
4950
[Sam Rawlins]: https://github.com/srawlins
5051
[Sergey Prokhorov]: https://github.com/seriyps
5152
[Nils Knappmeier]: https://github.com/nknapp
53+
[Martin (Lhoerion)]: https://github.com/Lhoerion
5254

5355

5456
## Version 10.0.2

src/languages/typescript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export default function(hljs) {
3131
"protected",
3232
"implements",
3333
"declare",
34-
"abstract"
34+
"abstract",
35+
"readonly"
3536
];
3637
var KEYWORDS = {
3738
$pattern: ECMAScript.IDENT_RE,

0 commit comments

Comments
 (0)