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

Allow deriving Parse on keywords. #19578

Merged
merged 4 commits into from Dec 15, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

style: Handle servo-prefixed stuff correctly.

  • Loading branch information
emilio committed Dec 15, 2017
commit 5b8f65190a7c54586f3b2025cc5619b3542a4f70
@@ -409,7 +409,7 @@ pub fn where_predicate(

/// Transforms "FooBar" to "foo-bar".
///
/// If the first Camel segment is "Moz" or "Webkit", the result string
/// If the first Camel segment is "Moz", "Webkit", or "Servo", the result string
/// is prepended with "-".
pub fn to_css_identifier(mut camel_case: &str) -> String {
camel_case = camel_case.trim_right_matches('_');
@@ -418,7 +418,7 @@ pub fn to_css_identifier(mut camel_case: &str) -> String {
while let Some(segment) = split_camel_segment(&mut camel_case) {
if first {
match segment {
"Moz" | "Webkit" => first = false,
"Moz" | "Webkit" | "Servo" => first = false,
_ => {},
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.