Skip to content

Conversation

@Zetagon
Copy link

@Zetagon Zetagon commented Aug 15, 2020

Fixes #988

I'm not sure if the commit messages or the code looks good so I'll mark this as a draft. I have signed the copyright-papers so that should not be an issue.

Zetagon added 12 commits May 22, 2019 21:04
Previously either of the directives "binding" or "key" had to be present
in a snippet for it to load properly. If both are absent the resulting
template gets the file name as a key. With this change "regexp-key" also
has that status.
Different regexp keys could match the same text(say "[a-z]" and "[a-c]")
while normal keys cannot(I think). This means that an ordering or
priority between snippets become meaningful. For the above example it
would not be clear which key would match the text "abc". If however,
"[a-c]" has higher priority than "[a-z]" there would be only one choice:
"[a-c]" would match.
@SoutrikBandyopadhyay
Copy link

Any updates on this ?

@Zetagon
Copy link
Author

Zetagon commented Aug 16, 2023

@SoutrikBandyopadhyay See #988 (comment)

@SoutrikBandyopadhyay
Copy link

Thank you for your quick reply, and I am sorry to disturb you.

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

Successfully merging this pull request may close these issues.

Adding support for regex as keys when expanding snippets

2 participants