<p></p>
<p><b>@eht16</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2930#discussion_r735102592">src/highlightingmappings.h</a>:</p>
<pre style='color:#555'>> @@ -388,7 +388,12 @@ static const HLStyle highlighting_styles_CSS[] =
        { SCE_CSS_EXTENDED_IDENTIFIER,          "extended_identifier",                FALSE },
        { SCE_CSS_EXTENDED_PSEUDOCLASS,         "extended_pseudoclass",               FALSE },
        { SCE_CSS_EXTENDED_PSEUDOELEMENT,       "extended_pseudoelement",     FALSE },
-       { SCE_CSS_MEDIA,                                        "media",                                      FALSE }
+       { SCE_CSS_GROUP_RULE,                           "group_rule",                         FALSE },
+       /* In Geany 1.38 and earlier shipped filetypes.css with "media" identifier,
+        * Scintilla/Lexilla 5.1.2 has renamed this style and extended its meaning.
+        * We still recognize media for compatibility.
+        */
+       { SCE_CSS_GROUP_RULE,                           "media",                                      FALSE }
</pre>
<blockquote>
<blockquote>
<p>Though it doesn't work, easy to find out by just testing it:</p>
</blockquote>
<p>I thought it did work, but maybe I tested it wrong, I just tried some CSS of the web :-)</p>
</blockquote>
<p>Or I tested it wrong? We need a third tester :D.</p>
<blockquote>
<p>For 4. if there is both a <code>media</code> and a <code>group_rule</code> syntactic entity is it possible they could both be assigned the same named style in the config file without any extra code needed?</p>
</blockquote>
<p>For me, it didn't work. I tested with the snippet I posted above in <code>~/.config/geany/filedefs/filetypes.css</code> and got "Bad color 'group_rule'" in the debug log.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2930#discussion_r735102592">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2V3BNS7J3GZ6EXP7DUIPTD5ANCNFSM5FYCAC7Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ4NICZL4HLQ5LAJZR3UIPTD5A5CNFSM5FYCAC72YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOF3YEO7A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2930#discussion_r735102592",
"url": "https://github.com/geany/geany/pull/2930#discussion_r735102592",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>