Browse Source

Merge pull request #490 from chearon/css-num-fix

CSS example: parse decimal form of nums correctly
master
Futago-za Ryuu 4 years ago
committed by GitHub
parent
commit
35f3c5267a
  1. 2
      examples/css.pegjs

2
examples/css.pegjs

@ -292,7 +292,7 @@ name
= chars:nmchar+ { return chars.join(""); }
num
= [+-]? ([0-9]+ / [0-9]* "." [0-9]+) ("e" [+-]? [0-9]+)? {
= [+-]? ([0-9]* "." [0-9]+ / [0-9]+) ("e" [+-]? [0-9]+)? {
return parseFloat(text());
}

Loading…
Cancel
Save