Skip to content

Commit

Permalink
Add inline expressions to sample #1
Browse files Browse the repository at this point in the history
  • Loading branch information
myurasov committed Apr 5, 2016
1 parent e5cd1d5 commit 21d84af
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
1 change: 1 addition & 0 deletions spec/fixtures/sample-1/input.nut
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// should not be included
@elseif SOMEVAR2 == 256
// should be included
// @{__FILE__}:@{__LINE__}
// should be included
@endif

Expand Down
41 changes: 38 additions & 3 deletions spec/fixtures/sample-1/input.nut.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,41 @@
"_line": 22,
"_file": "input.nut",
"type": "output",
"value": " // ",
"computed": true
},
{
"_line": 22,
"_file": "input.nut",
"type": "output",
"value": "__FILE__",
"computed": false
},
{
"_line": 22,
"_file": "input.nut",
"type": "output",
"value": ":",
"computed": true
},
{
"_line": 22,
"_file": "input.nut",
"type": "output",
"value": "__LINE__",
"computed": false
},
{
"_line": 22,
"_file": "input.nut",
"type": "output",
"value": "\n",
"computed": true
},
{
"_line": 23,
"_file": "input.nut",
"type": "output",
"value": " // should be included\n",
"computed": true
}
Expand All @@ -147,20 +182,20 @@
]
},
{
"_line": 24,
"_line": 25,
"_file": "input.nut",
"type": "output",
"value": "\n",
"computed": true
},
{
"_line": 25,
"_line": 26,
"_file": "input.nut",
"type": "conditional",
"test": "SOMEVAR2",
"consequent": [
{
"_line": 26,
"_line": 27,
"_file": "input.nut",
"type": "output",
"value": " // should be included\n",
Expand Down

0 comments on commit 21d84af

Please sign in to comment.