v0.1.23: add support for reals with E but without decimal .

parent 2791e60c
Pipeline #16581 passed with stage
in 25 seconds
......@@ -327,6 +327,8 @@ var highlightRules = {
['literal literal-char']],
[/([+~-]?\d+\.\d+(?:E[+-]?\d+)?)\b/,
['literal literal-real']],
[/([+~-]?\d+E[+-]?\d+)\b/,
['literal literal-real']],
[/([+~-]?0[0-7]+)\b/,
['literal literal-int literal-int-oct']],
[/([+~-]?\d+)\b/,['literal literal-int literal-int-dec']],
......@@ -354,6 +356,8 @@ var highlightRules = {
['literal literal-char']],
[/\b([+~-]?\d+\.\d+(?:E[+-]?\d+)?)\b/,
['literal literal-real']],
[/([+~-]?\d+E[+-]?\d+)\b/,
['literal literal-real']],
[/\b([+~-]?0[0-7]+)\b/,
['literal literal-int literal-int-oct']],
[/\b([+~-]?\d+)\b/,
......@@ -449,6 +453,8 @@ var highlightRules = {
['literal literal-char']],
[/([+~-]?\d+\.\d+(?:E[+-]?\d+)?)\b/,
['literal literal-real']],
[/([+~-]?\d+E[+-]?\d+)\b/,
['literal literal-real']],
[/([+~-]?\d+)\b/,['literal literal-int literal-int-dec']],
[/([+~-]?0x[\da-fA-F]+)\b/,
['literal literal-int literal-int-hex']],
......
{
"name": "clean-highlighter",
"version": "0.1.22",
"version": "0.1.23",
"description": "Clean language highlighter",
"keywords": ["clean","highlighter"],
"main": "clean.js",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment