Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit a6071de

Browse files
author
mikesamuel@gmail.com
committed
longer file extensions to comply with HTML5 convention class=language-javascript per issue 230
1 parent aa247b9 commit a6071de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/prettify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,13 +1321,13 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
13211321
'keywords': SH_KEYWORDS,
13221322
'hashComments': true,
13231323
'multiLineStrings': true
1324-
}), ['bsh', 'csh', 'sh']);
1324+
}), ['bash', 'bsh', 'csh', 'sh']);
13251325
registerLangHandler(sourceDecorator({
13261326
'keywords': PYTHON_KEYWORDS,
13271327
'hashComments': true,
13281328
'multiLineStrings': true,
13291329
'tripleQuotedStrings': true
1330-
}), ['cv', 'py']);
1330+
}), ['cv', 'py', 'python']);
13311331
registerLangHandler(sourceDecorator({
13321332
'keywords': PERL_KEYWORDS,
13331333
'hashComments': true,
@@ -1339,12 +1339,12 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
13391339
'hashComments': true,
13401340
'multiLineStrings': true,
13411341
'regexLiterals': true
1342-
}), ['rb']);
1342+
}), ['rb', 'ruby']);
13431343
registerLangHandler(sourceDecorator({
13441344
'keywords': JSCRIPT_KEYWORDS,
13451345
'cStyleComments': true,
13461346
'regexLiterals': true
1347-
}), ['js']);
1347+
}), ['javascript', 'js']);
13481348
registerLangHandler(sourceDecorator({
13491349
'keywords': COFFEE_KEYWORDS,
13501350
'hashComments': 3, // ### style block comments

0 commit comments

Comments
 (0)