django-language-server/crates
Josh Thomas b1b3e6a5ec
fix django block parsing (for now) (#31)
it's clear i need a rethink of parsing django block tags to nodes,
becuase my mental picture of them differs from the actual use of them.
E.g. I tend to think of them the same as HTML tags as either "void" tags
or ones with end tags and children but not that's not the case at all.
Some have intermediate tags (`{% if %}{% else %}{% endif %}`) which is
not a huge lift to support, but the mind blowing realization was that
it's just convention that the closing tag starts with `end`.

for builtin's, yeah that's it's the case that all of the tags that have
opening and closing tags all close with a matching tag that is the
initial tag with `end` prefixed. but given the flexibility of the django
template engine, a third-party could feasibly use *any* closing tag it
wanted. that makes it very hard to build a structured, full-featured AST
for a Django template.

maybe that's not really needed for an LSP. but i'll need to come up with
*something* eventually.
2024-12-13 23:55:32 -06:00
..
djlc-cli remove unused imports 2024-12-13 20:25:11 -06:00
djls-ast fix django block parsing (for now) (#31) 2024-12-13 23:55:32 -06:00
djls-django move GIS check to Python agent (#29) 2024-12-12 23:32:52 -06:00
djls-ipc move GIS check to Python agent (#29) 2024-12-12 23:32:52 -06:00
djls-python specify dependencies to minor version 2024-12-13 07:18:08 -06:00
djls-server specify dependencies to minor version 2024-12-13 07:18:08 -06:00
djls-worker move thiserror and async-tract to workspace dependencies (#15) 2024-12-10 14:13:53 -06:00