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

Support for INDENT and DEDENT #25

Open
LaylBongers opened this issue Aug 21, 2015 · 0 comments
Open

Support for INDENT and DEDENT #25

LaylBongers opened this issue Aug 21, 2015 · 0 comments
Milestone

Comments

@LaylBongers
Copy link

Having optional support for INDENT/DEDENT tokens would make parsing languages that require whitespace to define blocks easier.

Example:

do_thing param1, param2
if thing
    do_even_more "Hello"
    another_call "World"
and_finally "!"

Here an INDENT token would be placed right before do_event_more, but not before another_call as they're in the same indentation level. A DEDENT would be placed right before and_finally.

More information on how this is handled by the python parser can be found here:
http://www.secnetix.de/olli/Python/block_indentation.hawk

@cwensley cwensley added this to the 1.x milestone May 24, 2021
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

2 participants