Skip to content

Commit

Permalink
fix(typescript) Add missing readonly keyword (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unnvaldr authored May 19, 2020
1 parent e9e7b44 commit 278a610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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][]
Expand Down Expand Up @@ -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 (Lhoerion)]: https://github.com/Lhoerion


## Version 10.0.2
Expand Down
3 changes: 2 additions & 1 deletion src/languages/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export default function(hljs) {
"protected",
"implements",
"declare",
"abstract"
"abstract",
"readonly"
];
var KEYWORDS = {
$pattern: ECMAScript.IDENT_RE,
Expand Down

0 comments on commit 278a610

Please sign in to comment.