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

added support for flask and django (#145)

This commit is contained in:
Igor Chubin
2019-07-07 11:23:43 +00:00
parent ea055559c4
commit 2a450b5c34
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -301,7 +301,7 @@ def beautify(text, lang, options):
# temporary added line that removes invalid cache entries
# that used wrong commenting methods
if lang in ['git']:
if lang in ["git", "django", "flask"]:
cache.delete(digest)
answer = cache.get(digest)
+7
View File
@@ -75,6 +75,10 @@ LEXER = {
"eiffel" : pygments.lexers.EiffelLexer,
"clean" : pygments.lexers.CleanLexer,
"dylan" : pygments.lexers.DylanLexer,
# not languages
"django" : pygments.lexers.PythonLexer,
"flask" : pygments.lexers.PythonLexer,
}
# canonical names are on the right side
@@ -119,7 +123,10 @@ VIM_NAME = {
'mathematica': 'mma',
'wolfram-mathematica': 'mma',
# not languages
'git' : 'sh',
'django' : 'python',
'flask' : 'python',
}
SO_NAME = {