-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for hashes and iterations
- Loading branch information
1 parent
b8e0bd8
commit ad94fcf
Showing
7 changed files
with
163 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"insertColons": true, | ||
"insertSemicolons": true, | ||
"insertBraces": true, | ||
"insertNewLineBetweenGroups": 1, | ||
"insertNewLineBetweenSelectors": false, | ||
"insertSpaceBeforeComments": true, | ||
"insertSpaceAfterComments": true, | ||
"indentChar": "\t", | ||
"newLineChar": "\r\n", | ||
"sortProperties": false, | ||
"alwaysUseImport": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
foo={width:10px,height:20px} | ||
foo={ | ||
a1:{ | ||
b1:true, | ||
b2:false | ||
}, | ||
'a2':{c2:true}, | ||
'a3':{}, | ||
'0':false | ||
} | ||
foo['0']=bar | ||
|
||
body | ||
{foo} | ||
display a3 in foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
foo = { width: 10px, height: 20px }; | ||
foo = { | ||
'0': false, | ||
a1: { | ||
b1: true, | ||
b2: false | ||
}, | ||
a2: { c2: true }, | ||
a3: {} | ||
}; | ||
|
||
foo['0'] = bar; | ||
|
||
body { | ||
{foo}; | ||
|
||
display: a3 in foo; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"insertColons": true, | ||
"insertSemicolons": true, | ||
"insertBraces": true, | ||
"insertNewLineBetweenGroups": 1, | ||
"insertNewLineBetweenSelectors": false, | ||
"insertSpaceBeforeComments": true, | ||
"insertSpaceAfterComments": true, | ||
"insertParenthesisAroundConditions": true, | ||
"indentChar": "\t", | ||
"newLineChar": "\r\n", | ||
"sortProperties": false, | ||
"alwaysUseImport": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
body | ||
for num,index in 1 2 3 | ||
foo num | ||
|
||
for key,value in obj | ||
{key}:value | ||
|
||
sum(nums) | ||
sum = 0 | ||
sum += n for n in nums | ||
|
||
get(hash,key) | ||
return pair[1] if pair[0] == key for pair in hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
body { | ||
for num, index in 1 2 3 { | ||
foo: num; | ||
} | ||
} | ||
|
||
for key, value in obj { | ||
{key}: value; | ||
} | ||
|
||
sum(nums) { | ||
sum = 0; | ||
|
||
sum += n for n in nums; | ||
} | ||
get(hash, key) { | ||
return pair[1] if (pair[0] == key) for pair in hash; | ||
} |