Created
February 15, 2011 23:10
-
-
Save cdata/828483 to your computer and use it in GitHub Desktop.
This is a very strange syntax using a combination of colon and brackets. Anyone know its purpose?
This file contains hidden or 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
| a: { | |
| var x=1; | |
| var y=2; | |
| }; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out. For anyone else curious about lesser-known JavaScript syntax elements, here you go: https://developer.mozilla.org/en/JavaScript/Reference/Statements/label