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
We could also have factory helpers, e.g. Prism.keywords("foo", "bar", ...) that generate regexes for common things
The only difference is that Prism.keywords will not generate a regex but an array with a method/property generate. This method will be called when the pattern is used for the first time and returns a regex.
Like this, we can have lists of keywords which can be used and modified by other languages.
Thoughts?
The text was updated successfully, but these errors were encountered:
This is based on the idea of @LeaVerou (#1479 (comment))
The only difference is that
Prism.keywords
will not generate a regex but an array with a method/propertygenerate
. This method will be called when the pattern is used for the first time and returns a regex.Like this, we can have lists of keywords which can be used and modified by other languages.
Thoughts?
The text was updated successfully, but these errors were encountered: