henry-luo / mark

A simple and unified notation for both object and markup data. (beta)
MIT License
450 stars 15 forks source link

optional closing hint #5

Closed pannous closed 6 years ago

pannous commented 6 years ago

please allow for optional closing hints at the end of braces:

{html
# some 100 lines later
}html

or

html{
# some 100 lines later
html}

The inventors of xml had good reasons to have named closing tags for long documents. (lisp( like (brace (((( forests existed ))) before ))))

henry-luo commented 6 years ago

You can do it as following:

{html
# some 100 lines later
}//html

Such practice is common in C, Java, JS, etc. with deep nested blocks of code.

I don't think there's need to introduce new syntax.

pannous commented 6 years ago

fair enough

it should become standard in all IDEs to show it so, but that's not in our hands