After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795955 - css.lang: Add argument for :nth-* pseudo-classes
css.lang: Add argument for :nth-* pseudo-classes
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-08 21:54 UTC by Jeffery To
Modified: 2018-05-09 11:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
css.lang: Add argument for :nth-* pseudo-classes (2.29 KB, patch)
2018-05-08 21:58 UTC, Jeffery To
none Details | Review

Description Jeffery To 2018-05-08 21:54:55 UTC
The :nth-child/:nth-last-child/:nth-of-type/:nth-last-of-type pseudo-classes take an argument of either "odd", "even", or an expression of the form "An+B" where A and B are integers.[1]

Will attach a patch shortly.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
Comment 1 Jeffery To 2018-05-08 21:58:10 UTC
Created attachment 371821 [details] [review]
css.lang: Add argument for :nth-* pseudo-classes

This adds a selector-nth-argument context (and related contexts) to highlight the argument of :nth-* pseudo-classes.
Comment 2 Sébastien Wilmet 2018-05-09 11:08:12 UTC
Thanks, pushed as commit 8cbafc7c7e5bd3e5acf08c20e6a3dda3863ba82d.