Created
September 15, 2012 07:54
-
-
Save zixaphir/3726873 to your computer and use it in GitHub Desktop.
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
for i in [[email protected] - 1] | |
switch @value[i] | |
when '(' then depth++ | |
when ')' then depth-- | |
when '"' | |
if toggle1 then toggle1 = false | |
else then toggle1 = true | |
when '\'' | |
if toggle2 then toggle2 = false | |
else then toggle2 = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment