Skip to content

Commit e472761

Browse files
committed
Merge pull request #95 from goosemo/feature/Add-shell-script-as-a-type
Allow for Bash scripts to be used with pycco
2 parents 8629683 + 60a646a commit e472761

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pycco/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,11 @@ def generate_html(source, sections, preserve_paths=True, outdir=None):
317317

318318
".sql": {"name": "sql", "symbol": "--"},
319319

320+
".sh": { "name": "bash", "symbol": "#" },
321+
320322
".c": {"name": "c", "symbol": "//",
321323
"multistart": "/*", "multiend": "*/"},
324+
322325
".h": {"name": "c", "symbol": "//",
323326
"multistart": "/*", "multiend": "*/"},
324327

@@ -329,6 +332,7 @@ def generate_html(source, sections, preserve_paths=True, outdir=None):
329332

330333
".js": {"name": "javascript", "symbol": "//",
331334
"multistart": "/*", "multiend": "*/"},
335+
332336
".rb": {"name": "ruby", "symbol": "#",
333337
"multistart": "=begin", "multiend": "=end"},
334338

0 commit comments

Comments
 (0)