<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4018/css-class-selector, branch main</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=main</id>
<link rel='self' href='https://git.shady.money/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-10-08T17:21:11Z</updated>
<entry>
<title>userdiff: expand detected chunk headers for css</title>
<updated>2020-10-08T17:21:11Z</updated>
<author>
<name>Sohom Datta</name>
<email>sohom.datta@learner.manipal.edu</email>
</author>
<published>2020-10-08T08:36:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff01513f45a74d08fdd43f72461800a915e15c90'/>
<id>urn:sha1:ff01513f45a74d08fdd43f72461800a915e15c90</id>
<content type='text'>
The regex used for the CSS builtin diff driver in git is only
able to show chunk headers for lines that start with a number,
a letter or an underscore.

However, the regex fails to detect classes (starts with a .), ids
(starts with a #), :root and attribute-value based selectors (for
example [class*="col-"]), as well as @based block-level statements
like @page,@keyframes and @media since all of them, start with a
special character.

Allow the selectors and block level statements to begin with these
special characters.

Signed-off-by: Sohom Datta &lt;sohom.datta@learner.manipal.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
