Apparently, the number of levels that will function in syntax highlighting are dependent on the content.
This example:
For x=1 To 31
If x=1 or x=2 or x=3 or x=4 or x=5 or x=6 or x=7 or x=8 or x=9 or x=10 or x=11 or x=12 or x=13 or x=14 or x=15 or x=16 or x=17 or x=18 or x=19 or x=20 or x=21 or x=22 or x=23 or x=24 or x=25 or x=26 or x=27 or x=28 or x=29 or x=30 Then Print "YES";x, else Print "NO";x,
If x=1 And x=2 And x=3 And x=4 And x=5 And x=6 And x=7 And x=8 And x=9 And x=10 And x=11 And x=12 And x=13 And x=14 And x=15 And x=16 And x=17 And x=18 And x=19 And x=20 And x=21 And x=22 And x=23 And x=24 And x=25 And x=26 And x=27 And x=28 And x=29 And x=30 Then Print "YES";x, else Print "NO";x,
Next x
... will highlight the first 19 levels, while the following example:
For x=1 to 31
x$=Chr$(x)
If x$=Chr$(1) or x$=Chr$(2) or x$=Chr$(3) or x$=Chr$(4) or x$=Chr$(5) or x$=Chr$(6) or x$=Chr$(7) or x$=Chr$(8) or x$=Chr$(9) or x$=Chr$(10) or x$=Chr$(11) or x$=Chr$(12) or x$=Chr$(13) or x$=Chr$(14) or x$=Chr$(15) or x$=Chr$(16) or x$=Chr$(17) or x$=Chr$(18) or x$=chr$(19) or x$=chr$(20) or x$=chr$(21) or x$=chr$(22) or x$=chr$(23) or x$=chr$(24) or x$=chr$(25) or x$=chr$(26) or x$=chr$(27) or x$=chr$(28) or x$=chr$(29) or x$=chr$(30) Then Print "YES";x, else Print "NO";x,
Next x
...will only highlight the first 14 levels.
Finally, this example:
For x=1 to 31
x$=Chr$(x)+str$(x)
If x$=Chr$(1)+str$(x) or x$=Chr$(2)+str$(x) or x$=Chr$(3)+str$(x) or x$=Chr$(4)+str$(x) or x$=Chr$(5)+str$(x) or x$=Chr$(6)+str$(x) or x$=Chr$(7)+str$(x) or x$=Chr$(8)+str$(x) or x$=Chr$(9)+str$(x) or x$=Chr$(10)+str$(x) or x$=Chr$(11)+str$(x) or x$=Chr$(12)+str$(x) or x$=Chr$(13)+str$(x) or x$=Chr$(14)+str$(x) or x$=Chr$(15)+str$(x) or x$=Chr$(16)+str$(x) or x$=Chr$(17)+str$(x) or x$=Chr$(18)+str$(x) or x$=chr$(19)+str$(x) or x$=chr$(20)+str$(x) or x$=chr$(21)+str$(x) or x$=chr$(22)+str$(x) or x$=chr$(23)+str$(x) or x$=chr$(24)+str$(x) or x$=chr$(25)+str$(x) or x$=chr$(26)+str$(x) or x$=chr$(27)+str$(x) or x$=chr$(28)+str$(x) or x$=chr$(29)+str$(x) or x$=chr$(30)+str$(x) Then Print "YES";x, else Print "NO";x,
Next x
...will only properly highlight the first 9 1/2 levels.
In all 3 cases, however the code functions properly.
Since this is not a functional issue, it has been marked low priority.