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

On 23 January 2014 at 15:12 Eduardo Amorim tagged sdf

On 23 January 2014 at 15:13 Gabriël Konat tagged minor

On 12 March 2014 at 20:00 Eduardo Amorim commented:

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.


On 12 March 2014 at 20:00 Eduardo Amorim closed this issue.

On 9 July 2014 at 15:16 D. Pelsmaeker commented:

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.


On 9 July 2014 at 15:33 Eduardo Amorim commented:

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.


On 9 July 2014 at 15:47 D. Pelsmaeker commented:

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