Skip to content

Commit 0a90736

Browse files
authored
feat: add purescript filetype (#363)
1 parent 86ef342 commit 0a90736

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

data/plenary/filetypes/builtin.lua

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
local shebang_prefixes = { '/usr/bin/', '/bin/', '/usr/bin/env ', '/bin/env ' }
22
local shebang_fts = {
3-
['sh'] = 'sh',
4-
['bash'] = 'sh',
5-
['zsh'] = 'zsh',
63
['fish'] = 'fish',
4+
['perl'] = 'perl',
75
['python'] = 'python',
86
['python2'] = 'python',
97
['python3'] = 'python',
10-
['perl'] = 'perl',
8+
['bash'] = 'sh',
9+
['sh'] = 'sh',
10+
['zsh'] = 'zsh',
1111
}
1212

1313
local shebang = {}
@@ -19,36 +19,37 @@ end
1919

2020
return {
2121
extension = {
22+
['_coffee'] = 'coffee',
23+
['coffee'] = 'coffee',
24+
['cljd'] = 'clojure',
25+
['dart'] = 'dart',
2226
['ex'] = 'elixir',
2327
['exs'] = 'elixir',
24-
['plist'] = 'xml',
25-
['gradle'] = 'groovy',
26-
['kt'] = 'kotlin',
27-
['dart'] = 'dart',
28+
['erb'] = 'eruby',
2829
['fnl'] = 'fennel',
30+
['gql'] = 'graphql',
31+
['graphql'] = 'graphql',
32+
['gradle'] = 'groovy',
33+
['hbs'] = 'handlebars',
34+
['hdbs'] = 'handlebars',
2935
['janet'] = 'janet',
3036
['jsx'] = 'javascriptreact',
31-
['tsx'] = 'typescriptreact',
3237
['jl'] = 'julia',
33-
['coffee'] = 'coffee',
34-
['_coffee'] = 'coffee',
35-
['cljd'] = 'clojure',
38+
['kt'] = 'kotlin',
3639
['nix'] = 'nix',
37-
['erb'] = 'eruby',
38-
['hbs'] = 'handlebars',
39-
['hdbs'] = 'handlebars',
40-
['graphql'] = 'graphql',
41-
['gql'] = 'graphql',
40+
['purs'] = 'purescript',
4241
['rkt'] = 'racket',
4342
['res'] = 'rescript',
4443
['resi'] = 'rescript',
44+
['tsx'] = 'typescriptreact',
45+
['plist'] = 'xml',
4546
},
4647
file_name = {
4748
['cakefile'] = 'coffee',
4849
['.babelrc'] = 'json',
49-
['.prettierrc'] = 'json',
5050
['.eslintrc'] = 'json',
5151
['.firebaserc'] = 'json',
52+
['.prettierrc'] = 'json',
5253
},
5354
shebang = shebang
5455
}

0 commit comments

Comments
 (0)