Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

156 lines (136 sloc) 2.52 kb
ruby:
ext: ['.rb', '.rake']
after: ['^#!', '^#.*encoding:']
comment:
open: '#\n'
close: '#\n'
prefix: '# '
perl:
ext: ['.pl']
after: ['^#!', '^#.*encoding:']
comment:
open: '#\n'
close: '#\n'
prefix: '# '
# Support PEP 0263 comments:
# coding=<encoding name>
# -*- coding: <encoding name> -*-
# vim: set fileencoding=<encoding name> :
python:
ext: ['.py']
after: ['^#!', '^#.*coding:', '^#.*coding=', '^#.*fileencoding=']
comment:
open: '\n'
close: '\n'
prefix: '# '
html:
ext: ['.html', '.htm', '.xhtml']
comment:
open: '<!--\n'
close: '-->\n'
prefix: ' '
php:
ext: ['.php']
after: [ '^#!' ]
comment:
open: '<?php \n/*\n'
close: ' */ ?>\n'
prefix: ' * '
javacript:
ext: ['.js']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '
css:
ext: ['.css']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '
c:
ext: ['.c', '.h']
comment:
open: '/*'
close: ' */\n\n'
prefix: ' * '
cpp:
ext: ['.cpp', '.hpp', '.cc', '.hh']
comment:
open: '//\n'
close: '//\n\n'
prefix: '// '
java:
ext: ['.java']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '
groovy:
ext: ['.groovy']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '
haml:
ext: ['.haml', '.hamlc']
comment:
open: '-#\n'
close: '-#\n'
prefix: '-# '
coffee:
ext: ['.coffee']
comment:
open: '###\n'
close: '###\n'
prefix: ''
# M4 macro language, use #, not dnl
m4:
ext: ['.m4']
comment:
open: '#\n'
close: '#\n'
prefix: '# '
# Most shells, really
shell:
ext: ['.sh']
after: ['^#!']
comment:
open: '#\n'
close: '#\n'
prefix: '# '
# Use "-- " to make sure e.g. MySQL understands it
sql:
ext: ['.sql']
comment:
open: '-- \n'
close: '-- \n'
prefix: '-- '
# XML is *not* the same as HTML, and the comments need to go after a
# preprocessing directive, if present.
# FIXME: only supports single line directives
xml:
ext: ['.xml', '.xsd', '.mxml']
after: ['^<\?']
comment:
open: '<!--\n'
close: '-->\n'
prefix: ' '
yaml:
ext: ['.yml', '.yaml']
comment:
open: '#\n'
close: '#\n'
prefix: '# '
action_script:
ext: ['.as']
comment:
open: '//\n'
close: '//\n\n'
prefix: '// '
sass:
ext: ['.sass', '.scss']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '
Jump to Line
Something went wrong with that request. Please try again.