-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Replace $& with the whole match #5416
Comments
Comment by njx Hi - sorry I haven't gotten to this, been busy with non-Brackets stuff (and the holidays :)) I might not be able to get to it until the next sprint. |
Comment by MarcelGerber
|
Comment by njx Sorry, my time has been crunched. Let me find someone else who can review it next week. |
Comment by njx Unassigning so we can look at reassigning it next week |
Comment by MarcelGerber Seems like you forgot to re-assign this |
Comment by njx No, haven't forgotten. We're trying to finish out the sprint (a bit late due to some issues with file watchers) and so we aren't picking up other pull requests right now. Hopefully we'll get back to it in a few days. Sorry! |
Comment by kkarlesk
|
Comment by lkcampbell
I guess one of the things I don't understand is why we have to write our own parsing code for the dollar sign combinations if the Javascript engine already knows how to parse these patterns. Is there a way we could just have Javascript do that work for us? |
Comment by lkcampbell I guess I should pose the question for |
Comment by MarcelGerber
|
Comment by njx Thanks for digging that up |
Comment by njx (But there might be some clever way to do it that I hadn't thought of... |
Comment by lkcampbell
If nothing else, we should come up with a good comment to document the solution so we don't keep asking this same question every time we look at the code. But until I understand the problem a bit better, I don't know exactly what the comment is going to be. |
Comment by MarcelGerber Maybe something like this?
|
Comment by njx If we don't actually have an idea for how to do it, I think the comment should just explain why we think we can't - e.g. "Note that we can't just use the ordinary |
Comment by lkcampbell Sounds good to me for now. I haven't had any revelations in the last 24 hours. |
Comment by MarcelGerber Just added this comment. Hope everything is fine now. |
Comment by lkcampbell
|
Comment by lkcampbell It looks like 5cd2043adb71bf75dc9ec9121a2e5bb45513ccd5 removed the pressEnter() function and that is breaking your code. |
Comment by MarcelGerber
|
Comment by lkcampbell Looks good. Merging. |
Issue by MarcelGerber
Sunday Nov 10, 2013 at 19:09 GMT
Originally opened as adobe/brackets#5929
Implements the same special replacement patterns as in the Mozilla Reference.
See this little conversation: adobe/brackets#5840 (comment)
Includes Unit tests.
MarcelGerber included the following code: https://github.com/adobe/brackets/pull/5929/commits
The text was updated successfully, but these errors were encountered: