Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow one line blocks #94

Open
delapuente opened this issue Oct 15, 2015 · 0 comments
Open

Allow one line blocks #94

delapuente opened this issue Oct 15, 2015 · 0 comments

Comments

@delapuente
Copy link

From time to time you simply need to remove or leave debug traces or performance marks. For these cases, an alternative syntax to make the directive affect only the next line or the next block would be great. I suggest extending syntax to allow affect next line (_) or block ({}):

// @ifdef DEBUG {}
function debug(msg) {
  console.log('[DEBUG] ' + msg)
}

// @ifdef DEBUG _
debug('A trace!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant