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

Weird "Generic Highlighter > Ignored file patterns" behaviour

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.1
    • Editors
    • None
    • Linux/X11

      I want to test ignoring of .csv files, so I added this to Generic Highlighter > Ignored file patterns:

      ,\A(?:[^/\\]*\.csv)\z
      

      After hitting OK, nothing changed. So I reloaded the file; still nothing. I re-opened the settings dialog and it had become this:

      (?s:\\A\([^/]:[^,(?s:\\A\([^/]:LICENSE[^,\A(?:(?s:\\A\([^/]:README\)\\z))\z,\A(?:(?s:\\A\([^/]:INSTALL\)\\z))\z,\A(?:(?s:\\A\([^/]:COPYING\)\\z))\z,\A(?:(?s:\\A\([^/]:NEWS\)\\z))\z,\A(?:(?s:\\A\([^/]:qmldir\)\\z))\z,(?s:\\A\([^/]:[^
      

      I tried with the contents of an untouched version of Creator:

      \A(?:[^/\\]*\.txt)\z,\A(?:LICENSE[^/\\]*)\z,\A(?:README)\z,\A(?:INSTALL)\z,\A(?:COPYING)\z,\A(?:NEWS)\z,\A(?:qmldir)\z
      

      Pasting that in results in this:

      (?s:\\A\([^/]:[^,(?s:\\A\([^/]:LICENSE[^,\A(?:(?s:\\A\([^/]:README\)\\z))\z,\A(?:(?s:\\A\([^/]:INSTALL\)\\z))\z,\A(?:(?s:\\A\([^/]:COPYING\)\\z))\z,\A(?:(?s:\\A\([^/]:NEWS\)\\z))\z,\A(?:(?s:\\A\([^/]:qmldir\)\\z))\z
      
      Product: Qt Creator 17.0.1
      Based on: Qt 6.9.2 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
      Built on: Aug 26 2025 00:11:42
      From revision: 21b0de15fc
      

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

            davschul David Schulz
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes