Skip to content

Commit

Permalink
Add support for Elvish (https://elv.sh).
Browse files Browse the repository at this point in the history
Usage in the wild:
https://github.com/search?q=extension%3Aelv&type=Code&ref=advsearch&l=&l=. There
are a couple of false positives, but the vast majority of the results are Elvish
scripts.

Code sample is taken from Elvish's standard library:
https://github.com/elves/elvish/blob/master/pkg/mods/epm/epm.elv, license BSD
2-clause.
  • Loading branch information
xiaq committed Jun 14, 2022
1 parent d7799da commit a15c83d
Show file tree
Hide file tree
Showing 7 changed files with 477 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@
[submodule "vendor/grammars/elixir-tmbundle"]
path = vendor/grammars/elixir-tmbundle
url = https://github.com/elixir-lang/elixir-tmbundle
[submodule "vendor/grammars/elvish"]
path = vendor/grammars/elvish
url = https://github.com/elves/elvish.git
[submodule "vendor/grammars/erlang.tmbundle"]
path = vendor/grammars/erlang.tmbundle
url = https://github.com/textmate/erlang.tmbundle
Expand Down
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ vendor/grammars/elixir-tmbundle:
- source.elixir
- text.elixir
- text.html.elixir
vendor/grammars/elvish:
- source.elvish
vendor/grammars/erlang.tmbundle:
- source.erlang
- text.html.erlang.yaws
Expand Down
10 changes: 10 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,16 @@ Elm:
codemirror_mode: elm
codemirror_mime_type: text/x-elm
language_id: 101
Elvish:
type: programming
ace_mode: text
extensions:
- ".elv"
interpreters:
- elvish
tm_scope: source.elvish
color: "#55BB55"
language_id: 570996448
Emacs Lisp:
type: programming
tm_scope: source.emacs.lisp
Expand Down
Loading

0 comments on commit a15c83d

Please sign in to comment.