diff --git a/CHANGELOG.md b/CHANGELOG.md index 0670f6a..5cbd787 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## *upcoming* +- ... + +## [1.2.0] - 2021-09-16 + - Non-standard operator `<>` can be used as an alternative for `!=` to avoid ambiguity with a verbatim block mark (`!`) inside `if` blocks. - Shortcut attributes `.CLS` and `#ID` no longer need spaces around, diff --git a/setup.cfg b/setup.cfg index abf2e72..8b689b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = hypertag-lang -version = 1.1.4 +version = 1.2.0 author = Marcin Wojnarski author_email = hypertag@paperity.org description = Modern language for markup generation with Python-like concise syntax, custom tags & Django integration. HTML templates reinvented. diff --git a/src/hypertag/core/grammar.py b/src/hypertag/core/grammar.py index b2fceee..e56a9e5 100644 --- a/src/hypertag/core/grammar.py +++ b/src/hypertag/core/grammar.py @@ -141,9 +141,6 @@ embedding_braces = '{' ws expr_augment ws '}' qualifier? embedding_eval = mark_eval !mark_eval expr_var -embedding_or_expr_augment = embedding / expr_augment -#embedding_or_factor = embedding / expr_factor - ### ATTRIBUTES of tags diff --git a/tests/sandbox.py b/tests/sandbox.py index 99adbb9..a0ec4db 100644 --- a/tests/sandbox.py +++ b/tests/sandbox.py @@ -214,9 +214,9 @@ text = r""" # import $os # | $os - $l = [1] - $l.append(2) - | $l + """ + text = r""" + try: p | text """ root = RootModule(runtime = HyperHTML(), filename = __file__, package = __package__) diff --git a/tox.ini b/tox.ini index f6652f7..cc8253a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ # Test, build & upload to PyPI: -# $ tox -r +# $ sudo tox -r # $ python3 -m build # $ python3 -m twine upload dist/* -- use __token__ as username