Announcement

Collapse
No announcement yet.

Highlighting Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Highlighting Bug

    Scooter: Could you explain why the colors are mixed up in this screencast?
    Text pointed to by red arrows should be black.
    Text pointed to by black arrows should be colored as a string or constant.

    The colors were off in the same way on both sides of the compare.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

  • #2
    It looks like the coloring is being thrown off by strings that end in a back-slash...
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment


    • #3
      Hi Michael,

      This is due to the file format. The current "Visual Basic Source" script defines \ as an escape character for strings. If you remove it from the string definition it should clear this up.

      I don't have much background in Visual Basic. It looks like to escape characters in Visual Basic Scripts they should just be doubled, like "" to represent a quote character. Do you know if it is the same for Visual Basic 6 and Visual Basic .NET, or is \ an appropriate string escape character for other versions of VB?
      Chris K Scooter Software

      Comment


      • #4
        No version of BASIC that I know of uses \ escape characters. A "" within a string represents a single double quote character in all versions of BASIC that I have used. Visual Basic is no exception. Please remove the \ escape character definition from the Visual Basic format. Thanks.
        BC v4.0.7 build 19761
        ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

        Comment


        • #5
          We should have a change to the string definitions of "Visual Basic Source" in our next release (3.0.12). The new regular expressions will be:
          "([^"]|"")*$
          "([^"]|"")*"c?
          Erik Scooter Software

          Comment


          • #6
            Thanks, this VB syntax coloring issue is fixed in build 3.0.12
            BC v4.0.7 build 19761
            ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

            Comment

            Working...
            X