1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

nim support

This commit is contained in:
Igor Chubin
2019-07-06 19:58:34 +00:00
parent cda004e41d
commit eced83f011
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -852,4 +852,10 @@ class LearnVisualBasicAdapter(LearnXYAdapter):
_filename = "visualbasic.html.markdown"
_splitted = False
class LearnVisualBasicAdapter(LearnXYAdapter):
"Learn Nim in Y Minutes"
prefix = "nim"
_filename = "nim.html.markdown"
_splitted = False
_ADAPTERS = {cls.prefix: cls() for cls in vars()['LearnXYAdapter'].__subclasses__()}
+2
View File
@@ -43,6 +43,7 @@ LEXER = {
"mathematica": pygments.lexers.MathematicaLexer,
"matlab" : pygments.lexers.MatlabLexer,
"mongo" : pygments.lexers.JavascriptLexer,
"nim" : pygments.lexers.NimrodLexer,
"objective-c": pygments.lexers.ObjectiveCppLexer,
"ocaml" : pygments.lexers.OcamlLexer,
"octave" : pygments.lexers.OctaveLexer,
@@ -108,6 +109,7 @@ VIM_NAME = {
'dlang' : 'd',
'elisp' : 'newlisp',
'forth' : 'fs',
'nim' : 'nimrod',
'perl6' : 'perl',
'python3' : 'python',
'python-3.x': 'python',