Layout not being highlighted
In the lexical syntax when I use LAYOUT in the productive form, it is not highlighted.
Submitted by Eduardo Amorim on 23 January 2014 at 15:11
Issue Log
This was actually caused because a mistake in SDF3 grammar. A production in the productive form was “ID = Symbols Attributes”. In this case “LAYOUT” was recognized as being an regular ID, therefor it was not highlighted. This is fixed in the new SDF3 grammar.
I doesn’t seems to have been fixed. The
LAYOUT
keyword is not highlighted when used on the left-hand side of a productive productions in SDF3.lexical syntax LAYOUT = [\ \t\n\r]
However, the
LAYOUT
keyword is highlighted when used on the right-hand side of a reductive production.lexical syntax [\ \t\n\r] -> LAYOUT
I’m using Spoofax 1.2.0.0-s41757, but it also seems to be an issue with the latest source from Github.
Yes, by fixed in the new SDF3 grammar, I meant the version we are about to release (in nightly, for testing), and that I have been working on. I can try to fix it in the actual version, but it is basically because of a small mistake in the way productive productions are defined in the current SDF3 grammar.
Oh, didn’t know there was an alternative new SDF3 version. Don’t bother fixing it in the current version, it’s not actually an issue.
Log in to post comments