GtkSourceLanguage: Simple/keyword contexts do not correctly end grandparents
Tested with gedit 3.28.1 on Ubuntu 18.04. (Apologies if this has already been fixed in master.)
The structure:
- Grandparent container context A includes parent container context B
- Parent container context B includes child context C
- Parent context B and child context C both have
end-parent="true"
If child context C is a container context (has <start>
element), then when it ends, parent context B and grandparent context A are both ended correctly.
But if child context C is a simple (<match>
) or keyword (<keyword>
) context, then parent context B will end but the grandparent context A will not end.
Test case:
test.lang
end-parent.test
screenshot
Edited by Christian Hergert