|
1 | 1 | {% comment %} |
2 | | - |
3 | 2 | Convert the alias of the syntax language to the official name |
4 | 3 |
|
5 | 4 | See: <https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers> |
6 | | - |
7 | 5 | {% endcomment %} |
8 | 6 |
|
9 | 7 | {% assign _lang = include.language | default: '' %} |
|
20 | 18 | {% when 'coffeescript', 'coffee', 'coffee-script' %} |
21 | 19 | {{ 'CoffeeScript' }} |
22 | 20 | {% when 'cs', 'csharp' %} |
23 | | - {{ 'C#' }} |
| 21 | + {{ 'C#' }} |
24 | 22 | {% when 'erl' %} |
25 | 23 | {{ 'Erlang' }} |
26 | 24 | {% when 'graphql' %} |
27 | | - {{ 'GraphQL' }} |
| 25 | + {{ 'GraphQL' }} |
28 | 26 | {% when 'haskell', 'hs' %} |
29 | | - {{ 'Haskell' }} |
| 27 | + {{ 'Haskell' }} |
30 | 28 | {% when 'javascript', 'js' %} |
31 | 29 | {{ 'JavaScript' }} |
32 | 30 | {% when 'make', 'mf', 'gnumake', 'bsdmake' %} |
|
39 | 37 | {{ 'Objective-C' }} |
40 | 38 | {% when 'perl', 'pl' %} |
41 | 39 | {{ 'Perl' }} |
42 | | - {% when 'php','php3','php4','php5' %} |
| 40 | + {% when 'php', 'php3', 'php4', 'php5' %} |
43 | 41 | {{ 'PHP' }} |
44 | 42 | {% when 'py' %} |
45 | 43 | {{ 'Python' }} |
46 | 44 | {% when 'rb' %} |
47 | 45 | {{ 'Ruby' }} |
48 | | - {% when 'rs','no_run','ignore','should_panic' %} |
| 46 | + {% when 'rs', 'no_run', 'ignore', 'should_panic' %} |
49 | 47 | {{ 'Rust' }} |
50 | 48 | {% when 'bash', 'zsh', 'ksh', 'sh' %} |
51 | 49 | {{ 'Shell' }} |
52 | 50 | {% when 'st', 'squeak' %} |
53 | 51 | {{ 'Smalltalk' }} |
54 | | - {% when 'tex'%} |
| 52 | + {% when 'tex' %} |
55 | 53 | {{ 'TeX' }} |
56 | 54 | {% when 'latex' %} |
57 | | - {{ 'LaTex' }} |
| 55 | + {{ 'LaTeX' }} |
58 | 56 | {% when 'ts', 'typescript' %} |
59 | 57 | {{ 'TypeScript' }} |
60 | 58 | {% when 'vb', 'visualbasic' %} |
|
0 commit comments