Announcement

Collapse
No announcement yet.

9222 Indicating source grammar

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

  • Erik
    replied
    The "Move Up" and "Move Down" buttons are only available for the grammar list, where order matters. They are not available for the importance list where order does not matter.

    Text is uniquely classified. For example, "procedure" in Delphi Source is only classified as a keyword, not as an identifier and therefore only follows the importance of keywords. It is a keyword because keyword is defined before identifier in the grammar list.

    Leave a comment:


  • chrisjj
    replied
    > How often are you using different formats for each side?

    Not as often as I will be when I get it working...

    > If you're formats don't have similar element lists, the comparison will
    > probably not be very useful because different element types are always
    > considered a difference.

    Oh - I suggest that /definitely/ needs documenting.

    > Priority in the importance list doesn't make sense.

    Then what are the Move Up and Move Down (in prority) buttons for?

    > Each element is independent.

    ...except when multiple elements match simultaneously.

    Leave a comment:


  • Erik
    replied
    As I stated elsewhere, separate lists would be awkward and confusing (Comment is important on left but unimportant on right just doesn't make sense). How often are you using different formats for each side? If you're formats don't have similar element lists, the comparison will probably not be very useful because different element types are always considered a difference. Split grammars, like C++ on the left and Delphi on the right work best when they have common elements (Comments, Strings, etc). Priority in the importance list doesn't make sense. It's just a list of elements and their importance. Each element is independent.

    Leave a comment:


  • chrisjj
    started a topic 9222 Indicating source grammar

    9222 Indicating source grammar

    It would be nice if Session Settings Importance's "Grammar elements" indicated for each element which of the two possible grammars was its source.

    My preference would be for a separate list for each grammar. This would also remove the false implication of priority that the use of one list currently gives.
Working...
X