Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-7906

Extension matching for KATE syntax files has an ordering problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 4.13.0-beta1
    • Qt Creator 2.5.0, Qt Creator 4.11.1
    • Editors
    • None
    • 6989c9bbeae1403b8c1733bdae784841369cb8ce (qt-creator/qt-creator/master)

      I created a KATE syntax file for the proprietary XML+Ruby format we use. I tested out the file with KWrite and it works fine. However, Qt Creator did not use the new syntax highlighter.

      The extension of our files is .rb.xml. This "conflicts" with the normal XML syntax, which uses .xml. KWrite had no problem matching my rule instead of the system rule. I'm not sure if it's just because my syntax file is in my directory instead of the system directory or because .rb.xml is "more specific" than .xml.

      Qt Creator should use the same logic as other KATE apps when matching syntax files.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            con Eike Ziller
            a1291762 Lincoln Ramsay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes