-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: temporarily use other tree-sitter-php that fixes tree-sitter-b…
…ash conflicts
- Loading branch information
Showing
7 changed files
with
76 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,68 @@ | ||
" # ============================================================================== | ||
" # Regular functions. | ||
" # ============================================================================== | ||
" Given sh (regular functions): | ||
" function test { | ||
" echo "foobar" | ||
" } | ||
" | ||
" Do (trigger doge): | ||
" \<C-d> | ||
" | ||
" Expect sh (generated comments with a descriptios and 'Globals', 'Arguments' and 'Returns' keywords): | ||
" ################################################################################ | ||
" # [TODO:description] | ||
" # Globals: | ||
" # [TODO:variable name] | ||
" # Arguments: | ||
" # $1: [TODO:description for each parameter] | ||
" # Outputs: | ||
" # [TODO:description for each output variable] | ||
" # Returns: | ||
" # [TODO:description] | ||
" ################################################################################ | ||
" function test { | ||
" echo "foobar" | ||
" } | ||
# ============================================================================== | ||
# Regular functions. | ||
# ============================================================================== | ||
Given sh (regular functions): | ||
function foo { | ||
echo "foo" | ||
} | ||
|
||
function bar() { | ||
echo "bar" | ||
} | ||
|
||
baz() { | ||
echo "baz" | ||
} | ||
|
||
Do (trigger doge): | ||
\<C-d> | ||
:16\<CR> | ||
\<C-d> | ||
:31\<CR> | ||
\<C-d> | ||
|
||
Expect sh (generated comments with a descriptios and 'Globals', 'Arguments' and 'Returns' keywords): | ||
################################################################################ | ||
# [TODO:description] | ||
# Globals: | ||
# [TODO:variable name] | ||
# Arguments: | ||
# $1: [TODO:description for each parameter] | ||
# Outputs: | ||
# [TODO:description for each output variable] | ||
# Returns: | ||
# [TODO:description] | ||
################################################################################ | ||
function foo { | ||
echo "foo" | ||
} | ||
|
||
################################################################################ | ||
# [TODO:description] | ||
# Globals: | ||
# [TODO:variable name] | ||
# Arguments: | ||
# $1: [TODO:description for each parameter] | ||
# Outputs: | ||
# [TODO:description for each output variable] | ||
# Returns: | ||
# [TODO:description] | ||
################################################################################ | ||
function bar() { | ||
echo "bar" | ||
} | ||
|
||
################################################################################ | ||
# [TODO:description] | ||
# Globals: | ||
# [TODO:variable name] | ||
# Arguments: | ||
# $1: [TODO:description for each parameter] | ||
# Outputs: | ||
# [TODO:description for each output variable] | ||
# Returns: | ||
# [TODO:description] | ||
################################################################################ | ||
baz() { | ||
echo "baz" | ||
} |