File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ CommentedValue
8484 {
8585 var result = Object .create (null )
8686 result .comment = comment .trim ();
87- result .value = literal . trim () ;
87+ result .value = literal;
8888 return result;
8989 }
9090
@@ -117,12 +117,19 @@ Identifier
117117 { return id .join (' ' ) }
118118
119119Value
120- = obj :Object { return obj }
121- / literal :Literal { return literal }
120+ = obj :Object { return obj } / NumberValue / StringValue
122121
123122Literal
124- = literal :LiteralChar +
125- { return literal .join (' ' ) }
123+ = StringValue
124+
125+ NumberValue
126+ = number :Digit + { return parseInt (number, 10 ) }
127+
128+ Digit
129+ = [0-9]
130+
131+ StringValue
132+ = literal :LiteralChar + { return literal .join (' ' ) }
126133
127134LiteralChar
128135 = ! InlineCommentOpen char :[^;\n ]
You can’t perform that action at this time.
0 commit comments