Skip to content

Commit

Permalink
enh(nim) add missing keywords (#4171)
Browse files Browse the repository at this point in the history
Used the [keyword list from the manual](https://nim-lang.org/docs/manual.html#lexical-analysis-identifiers-amp-keywords) and added the missing ones
  • Loading branch information
ire4ever1190 authored Nov 17, 2024
1 parent d80c14e commit 4af42d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Core Grammars:
- fix(nix) don't mix escapes for `"` and `''` strings [h7x4][]
- fix(swift) - Fixed syntax highlighting for class func/var declarations [guuido]
- fix(yaml) - Fixed wrong escaping behavior in single quoted strings [guuido]
- enh(nim) - Add `concept` and `defer` to list of Nim keywords [Jake Leahy]

New Grammars:

Expand Down Expand Up @@ -83,6 +84,7 @@ CONTRIBUTORS
[Somya]: https://github.com/somya-05
[guuido]: https://github.com/guuido
[clsource]: https://github.com/clsource
[Jake Leahy]: https://github.com/ire4ever1190


## Version 11.10.0
Expand Down
2 changes: 2 additions & 0 deletions src/languages/nim.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export default function(hljs) {
"break",
"case",
"cast",
"concept",
"const",
"continue",
"converter",
"defer",
"discard",
"distinct",
"div",
Expand Down

0 comments on commit 4af42d1

Please sign in to comment.