diff --git a/lib/adapter/learnxiny.py b/lib/adapter/learnxiny.py index 73dbb5e..f6eb894 100644 --- a/lib/adapter/learnxiny.py +++ b/lib/adapter/learnxiny.py @@ -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__()} diff --git a/lib/languages_data.py b/lib/languages_data.py index 2479f8c..8581f4d 100644 --- a/lib/languages_data.py +++ b/lib/languages_data.py @@ -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',