Add a real Pygments lexer for Wren (finally!).

This commit is contained in:
Bob Nystrom
2015-09-22 07:59:54 -07:00
parent 36f7d74183
commit 505b48fdac
34 changed files with 294 additions and 198 deletions
+6 -6
View File
@@ -20,7 +20,7 @@ The value of π.
The absolute value of the number.
:::dart
:::wren
-123.abs // 123
### **acos**
@@ -44,7 +44,7 @@ numbers to determine the quadrant of the result.
Rounds the number up to the nearest integer.
:::dart
:::wren
1.5.ceil // 2
(-3.2).ceil // -3
@@ -56,7 +56,7 @@ The cosine of the number.
Rounds the number down to the nearest integer.
:::dart
:::wren
1.5.floor // 1
(-3.2).floor // -4
@@ -82,7 +82,7 @@ The tangent of the number.
Negates the number.
:::dart
:::wren
var a = 123
-a // -123
@@ -130,7 +130,7 @@ It is a runtime error if `other` is not a number.
Creates a [Range](core/range.html) representing a consecutive range of numbers
from the beginning number to the ending number.
:::dart
:::wren
var range = 1.2..3.4
System.print(range.min) // 1.2
System.print(range.max) // 3.4
@@ -141,7 +141,7 @@ from the beginning number to the ending number.
Creates a [Range](core/range.html) representing a consecutive range of numbers
from the beginning number to the ending number not including the ending number.
:::dart
:::wren
var range = 1.2...3.4
System.print(range.min) // 1.2
System.print(range.max) // 3.4