You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/27 10:56:30 UTC

[GitHub] [netbeans] noelma opened a new issue, #5012: [CSS] Color error on Pseudo-classes

noelma opened a new issue, #5012:
URL: https://github.com/apache/netbeans/issues/5012

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   Syntax highlighting fails when writing complex selectors with pseudo-classes
   ![Capture d’écran du 2022-11-27 11-50-01](https://user-images.githubusercontent.com/10517497/204131353-64634af8-dcab-4f72-9162-39c7fed0f940.png)
   
   
   ### How to reproduce
   
   - In `Tools` > `Font & Colors` > `Syntax` > `Langauge(Cascading Style Sheet)`,
     ![Capture d’écran du 2022-11-27 11-48-04](https://user-images.githubusercontent.com/10517497/204131576-b6caed37-772f-4506-8d74-16163bb492a8.png)
   - Add different colors to:
     - `Property Name`,
     - `Pseudo Class`,
     - `Selector`.
   - And `Apply`,
   - Insert the following code in a CSS file:
     ```css
     :before,
     :after {
     }
   
     input:disabled,
     input:focus,
     input:hover {
     }
   
     [type="checkbox"]:nth-child(2n), /* color error on '2n' */
     [type="checkbox"]:not([hidden]), /* color error on '([' */
     [type="checkbox"]:not(.active), /* color error on '(' */
     [type="checkbox"]:not(:checked), /* color error on '(' */
     [type="checkbox"]:checked {
     }
     ```
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 15
   
   ### Operating System
   
   Linux version 5.15.0-53-generic running on amd64
   
   ### JDK
   
   18.0.2-ea; OpenJDK 64-Bit Server VM 18.0.2-ea+9-Ubuntu-222.04; Private Build
   
   ### Apache NetBeans packaging
   
   Apache NetBeans Snap Package
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #5012: [CSS] Color error on Pseudo-classes

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #5012:
URL: https://github.com/apache/netbeans/issues/5012#issuecomment-1365118846

   @noelma there is a problem in the hightlighter, though a bit different than you expect. You first case is right from the perspective of the highlighter, the latter cases are indeed broken.
   
   I pushed a fix into the referenced PR. Please have a look at it. There is also a test build available.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #5012: [CSS] Color error on Pseudo-classes

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #5012:
URL: https://github.com/apache/netbeans/issues/5012#issuecomment-1366143340

   @noelma I saw your :+1: - is that a "screenshot looks ok" or a "I have tested the change"?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing closed issue #5012: [CSS] Color error on Pseudo-classes

Posted by GitBox <gi...@apache.org>.
matthiasblaesing closed issue #5012: [CSS] Color error on Pseudo-classes
URL: https://github.com/apache/netbeans/issues/5012


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #5012: [CSS] Color error on Pseudo-classes

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #5012:
URL: https://github.com/apache/netbeans/issues/5012#issuecomment-1365119354

   With that PR the rendering looks like this (the colors don't match, but it should give an impression):
   
   ![image](https://user-images.githubusercontent.com/2179736/209546445-f31bb8e5-64f3-4d27-ad97-bf3e590d2591.png)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] noelma commented on issue #5012: [CSS] Color error on Pseudo-classes

Posted by GitBox <gi...@apache.org>.
noelma commented on issue #5012:
URL: https://github.com/apache/netbeans/issues/5012#issuecomment-1368876938

   Screenshot looks ok


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists