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:
@@ -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__()}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user