View Single Post
Old 01-11-2021, 02:34 PM   #69
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Okay, I have kept track of the selector nesting level and if it reaches the end and is not back to zero, this is now detected as an error in my version of cssparser_v2.2.

Code:
KevinsiMac:cssparser2 kbhend$ ./release/cssparser/cssparser ~/Desktop/junk.css
Errors: 1
  Error: 5: Unbalanced selector braces in style sheet
Warnings: 0
Information: 0
Pos: 0 Type: SEL_START  Data: .kevin
Pos: 13 Type: PROPERTY  Data: color
Pos: 20 Type: VALUE  Data: blue
.kevin {
    color:blue;
KevinH is offline   Reply With Quote