You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Just realized that docs can have legacy text too, so why stop at Python?
Describe the solution you'd like
Support other comment prefixes (not the YORE word but the actual characters to denote comments).
Markdown, HTML: <!-- ... -->
CSS: /* ... */
TOML, YAML, Ruby, shell: same (# ...)
Jinja: {# ... #}
Javascript/Typescript/C/C++/C#: // ...
what else? (please comment)
Looks like we can go with (comment_prefix, comment_suffix) tuples in a file extension mapping 🤔
Describe alternatives you've considered
/
Additional context
Since we wanted to support dependencies in #3, we would have to find a way to support other ecosystems 🤔 Maybe we could infer the ecosystem based on the extension of the file the comment was found in. For example, a comment found in a *.py file will target the Python ecosystem.
The text was updated successfully, but these errors were encountered:
Actually, a single file can use different comment syntaxes. For example, a Python module can both have # YORE: ... comments (code comments) and <!-- YORE: ... --> comments (Markdown docstrings). So maybe we should parse all syntaxes in every file 🤔
Is your feature request related to a problem? Please describe.
Just realized that docs can have legacy text too, so why stop at Python?
Describe the solution you'd like
Support other comment prefixes (not the
YORE
word but the actual characters to denote comments).<!-- ... -->
/* ... */
# ...
){# ... #}
// ...
Looks like we can go with (
comment_prefix
,comment_suffix
) tuples in a file extension mapping 🤔Describe alternatives you've considered
/
Additional context
Since we wanted to support dependencies in #3, we would have to find a way to support other ecosystems 🤔 Maybe we could infer the ecosystem based on the extension of the file the comment was found in. For example, a comment found in a
*.py
file will target the Python ecosystem.The text was updated successfully, but these errors were encountered: