mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-12-12 06:24:12 +03:00
added support for flask and django (#145)
This commit is contained in:
parent
ea055559c4
commit
2a450b5c34
@ -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)
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user