forked from atom/markdown-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension-helper.coffee
39 lines (38 loc) · 976 Bytes
/
extension-helper.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
scopesByFenceName =
'sh': 'source.shell'
'bash': 'source.shell'
'c': 'source.c'
'c++': 'source.cpp'
'cpp': 'source.cpp'
'coffee': 'source.coffee'
'coffeescript': 'source.coffee'
'coffee-script': 'source.coffee'
'cs': 'source.cs'
'csharp': 'source.cs'
'css': 'source.css'
'scss': 'source.css.scss'
'sass': 'source.sass'
'erlang': 'source.erl'
'go': 'source.go'
'html': 'text.html.basic'
'java': 'source.java'
'js': 'source.js'
'javascript': 'source.js'
'json': 'source.json'
'less': 'source.less'
'mustache': 'text.html.mustache'
'objc': 'source.objc'
'objective-c': 'source.objc'
'php': 'text.html.php'
'py': 'source.python'
'python': 'source.python'
'rb': 'source.ruby'
'ruby': 'source.ruby'
'text': 'text.plain'
'toml': 'source.toml'
'xml': 'text.xml'
'yaml': 'source.yaml'
'yml': 'source.yaml'
module.exports =
scopeForFenceName: (fenceName) ->
scopesByFenceName[fenceName] ? "source.#{fenceName}"