This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
CSS Url Hinting support #3485
Merged
Merged
CSS Url Hinting support #3485
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
04d518e
move html url hinting to a new hint provider
redmunds 2e51dd3
intermediate checkin
redmunds e7c34d7
temporary hack for url()
redmunds 5fc0f12
Merge remote-tracking branch 'origin/master' into randy/css-url-hinting
redmunds e92470e
another intermediate checkin
redmunds dcfca87
basic url() support
redmunds a2805a3
remove properties file
redmunds a24acbf
only put cursor inside parens for url()
redmunds b4f0d8d
Merge remote-tracking branch 'origin/master' into randy/css-url-hinting
redmunds 720c32b
do not show hints after '?' in url
redmunds b44b552
Merge remote-tracking branch 'origin/master' into randy/css-url-hinting
redmunds 62ea61b
cleanup data
redmunds 27e49b9
Merge remote-tracking branch 'origin/master' into randy/css-url-hinting
redmunds 6fdaa81
@import url support
redmunds 82da9ec
handle new import.url context; fix query string collection
redmunds 2456a8b
hint insertion/replacement; support quotes inside of url()
redmunds 77f2c6e
fix cursor placement; code cleanup
redmunds 68280dd
fix 'merge' (that didn't seem to cause a conflict)
redmunds 681e1a3
Merge remote-tracking branch 'origin/master' into randy/css-url-hinting
redmunds 62e51eb
intermediate unit test checkin
redmunds 0d8ae74
update tests for async hints
redmunds 5fd6306
more tests
redmunds 9de3221
add final set of tests
redmunds c61353b
changes for code review
redmunds 2b59570
more code review changes
redmunds 130c44b
merge with master
redmunds 0d9fdb6
intermediate checkin
redmunds 0904873
fixes for whitespace inside url()
redmunds 46392d8
don't use 'char' as param name to make Travis/jshint happy
redmunds 4440bb4
fix jsdoc
redmunds 8d3ad50
fix merge conflict
redmunds c3e1733
more code review changes
redmunds 769cc6b
yet another code review change
redmunds 83a9176
more jsdoc fixes
redmunds File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems odd to combine
\w
and\W
inside a square bracket that has the meaning of everything. Can you usehint.match(/url\(.*?\)/i)
instead ofhint.match(/url\([\w\W]*?\)/i)
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dot (.) matches "any single character except the newline character", so it's slightly different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want new line characters, then you should be able to match it with
m
flag, right? It's up to you to keep it as is. I'm just curious of having[\w\W]
in the regExp, and not really want you to change it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The m flag really only changes the meaning of the ^ and $ chars:
"The m flag is used to specify that a multiline input string should be treated as multiple lines. If the m flag is used, ^ and $ match at the start or end of any line within the input string instead of the start or end of the entire string".