From 0b40e1cd15578a1bb6128da4db19f22aea61793c Mon Sep 17 00:00:00 2001 From: Adnan Yaqoob Date: Wed, 25 Mar 2020 13:54:45 +0800 Subject: [PATCH] enh(nim) adds func keyword for (#2468) * adds `func` keyword for nim language --- CHANGES.md | 2 ++ src/languages/nim.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a1bf0402fa..23bc646929 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,7 @@ Parser Engine Changes: Language Improvements: +- enh(nim) adds `func` keyword (#2468) [Adnan Yaqoob][] - enh(xml) deprecate ActionScript inside script tags (#2444) [Josh Goebel][] - fix(javascript) prevent get/set variables conflicting with keywords (#2440) [Josh Goebel][] - bug(clojure) Now highlights `defn-` properly (#2438) [Josh Goebel][] @@ -64,6 +65,7 @@ Developer Tools: [Taufik Nurrohman]: https://github.com/taufik-nurrohman [Josh Goebel]: https://github.com/yyyc514 [Sean Williams]: https://github.com/hmmwhatsthisdo +[Adnan Yaqoob]: https://github.com/adnanyaqoobvirk ## Version 9.18.1 diff --git a/src/languages/nim.js b/src/languages/nim.js index a294294e06..1caaa67a16 100644 --- a/src/languages/nim.js +++ b/src/languages/nim.js @@ -13,7 +13,7 @@ export default function(hljs) { keyword: 'addr and as asm bind block break case cast const continue converter ' + 'discard distinct div do elif else end enum except export finally ' + - 'for from generic if import in include interface is isnot iterator ' + + 'for from func generic if import in include interface is isnot iterator ' + 'let macro method mixin mod nil not notin object of or out proc ptr ' + 'raise ref return shl shr static template try tuple type using var ' + 'when while with without xor yield',