Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-digit argument lists are processed incorrectly #48

Closed
bobbygryzynger opened this issue May 27, 2022 · 2 comments
Closed

Double-digit argument lists are processed incorrectly #48

bobbygryzynger opened this issue May 27, 2022 · 2 comments

Comments

@bobbygryzynger
Copy link

When I create a documentation block like this:

# @description This function has a lot of arguments.
#
# @arg $1 string Arg 1
# @arg $2 string Arg 2
# @arg $3 string Arg 3
# @arg $4 string Arg 4
# @arg $5 string Arg 5
# @arg $6 string Arg 6
# @arg $7 string Arg 7
# @arg $8 string Arg 8
# @arg $9 string Arg 9
# @arg $10 string Arg 10
my_function() {...}

The double-digit argument ($10) is not processed correctly. The output I get is:

### my_function()

This function has a lot of arguments.

#### Arguments

* **$1** (string): Arg 1
* **$2** (string): Arg 2
* **$3** (string): Arg 3
* **$4** (string): Arg 4
* **$5** (string): Arg 5
* **$6** (string): Arg 6
* **$7** (string): Arg 7
* **$8** (string): Arg 8
* **$9** (string): Arg 9
* $10 string Arg 10
@bobbygryzynger
Copy link
Author

#41 also mentions this.

@bobbygryzynger bobbygryzynger changed the title Double-digit arguments lists are processed incorrectly Double-digit argument lists are processed incorrectly May 27, 2022
landure added a commit to landure/shdoc that referenced this issue Oct 29, 2022
… and warning message when format is invalid.
kovetskiy pushed a commit that referenced this issue Nov 7, 2022
@bobbygryzynger
Copy link
Author

Fixed in #63.

landure added a commit to landure/shdoc that referenced this issue Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant