Open Remillard opened 4 years ago
Okay, figured a partial out. If the entity is the first character of the buffer, it doesn't identify it correctly. However in the example, it's not the first character of the buffer so ... not sure what's going on here. It just evaluates as default.
I think it has something to do with using ^entity
as the pattern. I altered it to excluding end and without the line anchor and it seems to fix everything. Will have to play with it a little more before I trust this completely.
Had same issue on architecture just now. Came from importing some badly formatted student code and again architecture wasn't being evaluated until I lost the leading line anchor and put in the (?<!end )
part. Wonder if there was a hidden character in there somewhere.
However this solution seems to screw up component direct entity instantiation, so undoing this for now and will have to investigate further when I can.
Found this happening, not sure why it's happening and not a lot of time to debug at the moment:
Note that the port clause in the second entity isn't indenting