forked from creationix/haml-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue creationix#56 Parse eol-style comments in a raw JavaScript code
- Loading branch information
1 parent
349ede1
commit 69f28e5
Showing
3 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
:each user in users | ||
- var testComment = "hello " + user // sample eol-comment | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = 'hello ' + user // sample eol-comment | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = "hello // ok " + user | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = "hello // ok " + user // sample eol-comment | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = 'hello // ok ' + user | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = 'hello // ok ' + user // sample eol-comment | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = "hel'lo " + user // sample eol-comment | ||
%div&= testComment | ||
|
||
:each user in users | ||
- var testComment = 'hel"lo ' + user // sample eol-comment | ||
%div&= testComment |
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 @@ | ||
<div>hello Alex</div><div>hello Alex</div><div>hello // ok Alex</div><div>hello // ok Alex</div><div>hello // ok Alex</div><div>hello // ok Alex</div><div>hel'lo Alex</div><div>hel"lo Alex</div> |
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,5 @@ | ||
{ | ||
locals: { | ||
users: ["Alex"] | ||
} | ||
} |