Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f6f7c43e
Commit
f6f7c43e
authored
Jul 30, 2012
by
Mike Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for number signs +-
parent
a18a95f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
cms/static/grammar.jspeg
+4
-3
No files found.
cms/static/grammar.jspeg
View file @
f6f7c43e
...
@@ -111,11 +111,11 @@ primary
...
@@ -111,11 +111,11 @@ primary
/ "(" additive:additive ")" { return additive; }
/ "(" additive:additive ")" { return additive; }
decimal "decimal"
decimal "decimal"
=
first:[0-9]+
point:'.' last:[0-9]+
=
sign:[+-]? first:[0-9]*
point:'.' last:[0-9]+
{ return parseFloat(first.join("") + point + last.join("")); }
{ return parseFloat(
sign +
first.join("") + point + last.join("")); }
integer "integer"
integer "integer"
=
digits:[0-9]+ { return parseInt(
digits.join(""), 10); }
=
sign:[+-]? digits:[0-9]+ { return parseInt(sign +
digits.join(""), 10); }
percentage "percentage"
percentage "percentage"
= digits:[0-9]+ '%' { return parseInt(digits.join(""), 10) + '%'; }
= digits:[0-9]+ '%' { return parseInt(digits.join(""), 10) + '%'; }
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment