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

Regex issue #17

Open
williamthome opened this issue Sep 13, 2021 · 0 comments
Open

Regex issue #17

williamthome opened this issue Sep 13, 2021 · 0 comments

Comments

@williamthome
Copy link
Contributor

In my pull request I updated the regex to match the module name as ${RELATIVE_FILEPATH/^([^\\/\\\\]+[\/\\])|(\.ex|\.exs)$|([^._\\/\\\\]+)|_|([\/\\])/${3:/capitalize}${4:+.}/g} who works very well in defmod and ex_unit snippets, but not in supervisor, dynamic_supervisor and gen_server.
Any ideas on this?

Originally posted by @williamthome in #16 (comment)

williamthome added a commit to williamthome/vscode-elixir-snippets that referenced this issue Sep 13, 2021
The issue was not with regex, but the args syntax.
e.g. Instead of ${args} the correct syntax is ${1:args}
The numbers in front of the args were missing.
williamthome added a commit to williamthome/vscode-elixir-snippets that referenced this issue Sep 13, 2021
The issue was not with regex, but the args syntax.
e.g. Instead of ${args} the correct syntax is ${1:args}
The numbers in front of the args were missing.
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