hackers-painters / katana-parser

A CSS parsing library in pure C99
http://hackers-painters.github.io/katana-parser
MIT License
180 stars 40 forks source link

lex bug when processing comments? #26

Open jasenhuang opened 3 years ago

jasenhuang commented 3 years ago
/* 序言,前言相关 */
h2.preface {
    /*  序言前言标题  */
    margin: 30% 0 0.11111em;
}
/*  序言前言标题  */

h2.preface-title {
    margin: 30% 0 1.33333em 0;
}

/* 前言内容无缩进 */
p.preface-none {
    margin: 1.16667em 0;
}

/ 前言内容无缩进 / will process as gammar token

jasenhuang commented 3 years ago
/* 序言,前言相关 */
h2.preface {
    /*  序言前言标题  */
    margin: 30% 0 0.11111em;
}
/*  序言前言标题  */

h2.preface-title {
    margin: 30% 0 1.33333em 0;
}

/* 前言内容无缩进 */
p.preface-none {
    margin: 1.16667em 0;
}

/ 前言内容无缩进 / will process as gammar token

it's a unicode problem!!!