Skip to content

Commit

Permalink
Syntax Highlighting for Nim (#106)
Browse files Browse the repository at this point in the history
* add syntax.d/nim.ini

* add @m0lese to the contributor list
  • Loading branch information
molese authored Jul 29, 2021
1 parent 199ea3a commit 0383cf4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ any kind welcome!
<td align="center"><a href="https://github.com/Uniminin"><img src="https://avatars3.githubusercontent.com/u/42061747?v=4" width="100px;" alt=""/><br /><sub><b>Uniminin</b></sub></a><br /><a href="#syntax-highlighting-Uniminin" title="Contributing to syntax highlighting configuration files">💠</a></td>
<td align="center"><a href="https://github.com/Woomy4680-exe"><img src="https://avatars.githubusercontent.com/u/57042741?v=4" width="100px;" alt=""/><br /><sub><b>Woomy4680-exe</b></sub></a><br /><a href="https://github.com/ilai-deutel/kibi/issues?q=author%3AWoomy4680-exe" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/quadroli"><img src="https://avatars.githubusercontent.com/u/58091631?v=4" width="100px;" alt=""/><br /><sub><b>quadroli</b></sub></a><br /><a href="#syntax-highlighting-quadroli" title="Contributing to syntax highlighting configuration files">💠</a></td>
<td align="center"><a href="https://github.com/m0lese"><img src="https://avatars.githubusercontent.com/u/86180257?v=4" width="100px;" alt=""/><br /><sub><b>molese</b></sub></a><br /><a href="#syntax-highlighting-molese" title="Contributing to syntax highlighting configuration files">💠</a></td>
</tr>
</table>

Expand Down
14 changes: 14 additions & 0 deletions syntax.d/nim.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; https://nim-lang.org
name=Nim
; https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers
extensions=nim, nims
highlight_numbers=true
singleline_string_quotes="
; https://nim-lang.org/docs/manual.html#lexical-analysis-comments
singleline_comment_start=#
multiline_comment_delims=#[, ]#
multiline_string_delim="
; https://nim-lang.org/docs/manual.html#lexical-analysis-identifiers-amp-keywords
keywords_1=addr, and, as, asm, bind, block, break, case, cast, concept, const, continue, converter, defer, discard, distinct, div, do, elif, else, end, enum, except, export, finally, for, from, func, 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, xor, yield
; https://nim-lang.org/docs/tut1.html#basic-types
keywords_2=int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float, float32, float64, true, false

0 comments on commit 0383cf4

Please sign in to comment.