forked from DaleStudy/leetcode-study
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguages.bash
More file actions
executable file
ยท45 lines (43 loc) ยท 769 Bytes
/
languages.bash
File metadata and controls
executable file
ยท45 lines (43 loc) ยท 769 Bytes
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
40
41
42
43
44
45
#!/usr/bin/env bash
declare -A language_extensions=(
["cpp"]="cpp"
["java"]="java"
["python"]="py"
["python3"]="py"
["c"]="c"
["csharp"]="cs"
["javascript"]="js"
["typescript"]="ts"
["php"]="php"
["swift"]="swift"
["kotlin"]="kt"
["dart"]="dart"
["go"]="go"
["ruby"]="rb"
["scala"]="scala"
["rust"]="rs"
["racket"]="rkt"
["erlang"]="erl"
["elixir"]="ex"
)
declare -A language_comments=(
["cpp"]="// "
["java"]="// "
["python"]="# "
["python3"]="# "
["c"]="// "
["csharp"]="// "
["javascript"]="// "
["typescript"]="// "
["php"]="// "
["swift"]="// "
["kotlin"]="// "
["dart"]="// "
["go"]="// "
["ruby"]="# "
["scala"]="// "
["rust"]="// "
["racket"]="; "
["erlang"]="% "
["elixir"]="# "
)