Can nested tags be properly highlighted in ST?
I’ve been modifying an existing grammar but am unable to find any way to properly highlight this test case:
{red {green} xxx }
the green tag is embedded inside the red tag. both share the same end character.
red and xxx should both be scoped to “red”.
green should be scoped to “green”.
but the parser doesn’t seem to keep track of nesting, and just sees the first end character as the end. so, red and green both get the red scope, and xxx gets nothing.
for those familiar with ExpressionEngine, the actual test case is:
{exp:channel:entries
title="{site_name}"
limit="1"
{if embed:channel}
channel="{embed:channel}"
{/if}
}
Same problem with this example, which you can paste into a file and set to HTML syntax:
<script>
/* </script> */
</script>