Skip to content

Removing unneeded semicolon at the end of block#303

Open
Marat-Tanalin wants to merge 4 commits intoleafo:masterfrom
Marat-Tanalin:master
Open

Removing unneeded semicolon at the end of block#303
Marat-Tanalin wants to merge 4 commits intoleafo:masterfrom
Marat-Tanalin:master

Conversation

@Marat-Tanalin
Copy link
Copy Markdown
Contributor

...(before closing curly brace) in "compressed" output mode of formatter. For example, instead of:

.example{background:#eee;color:#000;}

we will have:

.example{background:#eee;color:#000}

compileValue(), added convertion of hexadecimal-color output value to
short notation when possible. For example, #003399 => #39, #000000 =>
(before closing curly brace) ...in "compressed" output mode of
formatter.
...around string literals that contain neither PHP variables to
interpolate nor special characters like \n. Strings wrapped in single
quotes are processed slightly faster in PHP since, unlike strings
wrapped in double quotes, PHP variables are not interpolated at all in
strings wrapped in single quotes and only two characters that must be
escaped in single-quoted strings are single quote character itself and
`\` character.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants