diff --git a/CHANGES.md b/CHANGES.md index 4fbec70be6..bfb4557be0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ Language Improvements: - fix(csharp) prevent modifier keywords wrongly flagged as `title` (#2683) [Josh Goebel][] - enh(axapta) Update keyword list for Axapta (X++) (#2686) [Ryan Jonasson][] - fix(fortran) FORTRAN 77-style comments (#2677) [Philipp Engel][] +- fix(c-like) Correctly highlight modifiers (`final`) in class declaration (#2696) [Josh Goebel][] [David Pine]: https://github.com/IEvangelist [Josh Goebel]: https://github.com/yyyc514 diff --git a/src/languages/c-like.js b/src/languages/c-like.js index 11fad83a89..cfc040c7fb 100644 --- a/src/languages/c-like.js +++ b/src/languages/c-like.js @@ -226,6 +226,7 @@ export default function(hljs) { className: 'class', beginKeywords: 'class struct', end: /[{;:]/, contains: [ + { beginKeywords: "final" }, {begin: //, contains: ['self']}, // skip generic stuff hljs.TITLE_MODE ]