Skip to content

Commit

Permalink
Add support for Elvish (#5940)
Browse files Browse the repository at this point in the history
Add support for Elvish (https://elv.sh).

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.

Co-authored-by: Colin Seymour <colin@github.com>
  • Loading branch information
xiaq and lildude authored Sep 2, 2022
1 parent 06a125b commit 1dde1b4
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 @@ -431,6 +431,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 @@ -353,6 +353,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 @@ -1715,6 +1715,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 1dde1b4

Please sign in to comment.