Announcement

Collapse
No announcement yet.

How do I make Case mismatch an important diff

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

  • How do I make Case mismatch an important diff

    Leading on from a very useful suggestion from the Scooter guys, I would like to make all my diffs important barring my SVN header. But I can't seem to get simple character case mismatch to come up in red.

    Anyone?

  • #2
    Under Session -> Session Settings... -> Importance tab, did you check "Everything else" and "Character case"?

    If the characters are part of defined grammar element (such as keywords in a programming language) the grammar element will define whether or not character case is important. For example: in C++ keywords are case sensitive so the grammar rules define that changes in case are important. In Visual Basic keywords are not case sensitive, so the grammar rules define that changes in case are not important. If you want to deviate from the default importance of case sensitivity in grammar elements, you may have to edit the grammar rule for the elements in which you wish to see case changes as important and mark that grammar element as being case sensitive.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment


    • #3
      Yes, I've checked everything, in the grammar too. No luck. It's mainly variable names that are different, and they are always coming up in blue.

      (Of course this would be a non-issue as soon as 'truly ignore this difference' is available)
      Last edited by timns; 18-Sep-2010, 03:41 PM.

      Comment


      • #4
        If it occurs in variable names, edit the grammar element for Identifiers and check the This element is case sensitive checkbox at the bottom of the Grammar Item dialog.
        BC v4.0.7 build 19761
        ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

        Comment


        • #5
          Originally posted by Michael Bulgrien View Post
          If it occurs in variable names, edit the grammar element for Identifiers and check the This element is case sensitive checkbox at the bottom of the Grammar Item dialog.
          Yes, that works thank you. I missed that checkbox at the bottom by obsessing with the 'Match character case' one. A little confusing to me.

          But no complaints - I appreciate your help.

          Comment


          • #6
            Yes, it can be a little confusing. I'm not sure how well I can explain the difference, but I'll give it a try.

            Match character case means if an explicit case is defined in the grammar element and the case of the text differs from the case defined in the grammar element then the text does not fall under that grammar element. It may fall under another type of grammar element or it simply falls in the Everything else category.

            If Match character case is not checked, then matching text will always fall under the same grammar element regardless of its case. Therefore, since changes in case do not change the type of grammar element you have, you can choose whether changes in case are significant or unimportant using the This element is case sensitive checkbox at the bottom of the dialog.
            BC v4.0.7 build 19761
            ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

            Comment


            • #7
              Thanks, Michael, for the detailed definition.
              Aaron P Scooter Software

              Comment

              Working...
              X