Skip to content

Commit 4af42d1

Browse files
authored
enh(nim) add missing keywords (#4171)
Used the [keyword list from the manual](https://nim-lang.org/docs/manual.html#lexical-analysis-identifiers-amp-keywords) and added the missing ones
1 parent d80c14e commit 4af42d1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Core Grammars:
4040
- fix(nix) don't mix escapes for `"` and `''` strings [h7x4][]
4141
- fix(swift) - Fixed syntax highlighting for class func/var declarations [guuido]
4242
- fix(yaml) - Fixed wrong escaping behavior in single quoted strings [guuido]
43+
- enh(nim) - Add `concept` and `defer` to list of Nim keywords [Jake Leahy]
4344

4445
New Grammars:
4546

@@ -83,6 +84,7 @@ CONTRIBUTORS
8384
[Somya]: https://github.com/somya-05
8485
[guuido]: https://github.com/guuido
8586
[clsource]: https://github.com/clsource
87+
[Jake Leahy]: https://github.com/ire4ever1190
8688

8789

8890
## Version 11.10.0

src/languages/nim.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ export default function(hljs) {
6464
"break",
6565
"case",
6666
"cast",
67+
"concept",
6768
"const",
6869
"continue",
6970
"converter",
71+
"defer",
7072
"discard",
7173
"distinct",
7274
"div",

0 commit comments

Comments
 (0)