Skip to content

Commit

Permalink
Separate fish into its own language (#397)
Browse files Browse the repository at this point in the history
fish diverges enough from other shells that it should be its own
language. In fact, it intentionally is not POSIX compliant.
  • Loading branch information
spenserblack authored Jun 5, 2024
1 parent 19063e8 commit f182d8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gengo/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,10 @@ Shell:
matchers:
extensions:
- bash
- fish
- sh
- zsh
interpreters:
- bash
- fish
- sh
- zsh
Solidity:
Expand Down Expand Up @@ -908,3 +906,11 @@ Zig:
matchers:
extensions:
- zig
fish: # NOTE: fish is always lowercase in their documentation
category: programming
color: "#4AAE47"
matchers:
extensions:
- fish
interpreters:
- fish
4 changes: 4 additions & 0 deletions samples-test/samples/fish/mkcd.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function mkcd --wraps=mkdir --description 'Make a directory and cd into it' --argument directory
mkdir -p $directory
cd $directory
end

0 comments on commit f182d8b

Please sign in to comment.