Minor syntax colouring error

Buzby

Senior Member
The last element of this extended LOOKUP line is black, it should be navy.

No great problem, but it looks odd.

Code:
[color=Black]Grp3: [/color]
[color=Purple]patLen [/color][color=DarkCyan]= [/color][color=Navy]31[/color]
[color=Blue]LOOKUP [/color][color=Purple]patPtr[/color][color=Black],[/color][color=Blue](      [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%10000000[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%01000000[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00100000[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00010000[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00001000[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00000100[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00000010[/color][color=Black],_
                     [/color][color=Navy]%00000000[/color][color=Black],[/color][color=Navy]%00000001[/color][color=Black],_
                     [/color][color=Navy]%10000000[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%01000000[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00100000[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00010000[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00001000[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00000100[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00000010[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Black],_
                     [/color][color=Navy]%00000001[/color][color=Black],%00000000_
                     [/color][color=Blue])[/color][color=Black],[/color][color=Purple]pattern[/color]
[color=Blue]return[/color]
 

hippy

Ex-Staff (retired)
I will make a note of that and pass it on. If you put a space before the underscore in the line that should resolve the colouring issue.
 

Technical

Technical Support
Staff member
Please note that line continuation is 'whitespace-underscore-return', not just 'underscore-return'.

The compiler will always do its best to workaround syntax errors if it can, but you should really be using the correct syntax to start with.

Consider 'b0_' do you mean variable called 'b0_' or a variable 'b0' followed by line continuation? Hence the reason for adding whitespace.
 
Last edited:

Buzby

Senior Member
Hi Technical,

I never knew it needed 'whitespace' before the underscore, so I'll bear that in mind in future.

The biggest hassle I have with line extending is that it gives a syntax error if there is 'whitespace' after the underscore, but before the 'return'.

It would be cool if the syntax check highlighted the actual 'whitespace', not just the logical line.

Cheers,

Buzby
 
Top