Fix wildcard matching for modelines

Authored by dhaumann on Dec 30 2017, 8:21 PM.

Description

Fix wildcard matching for modelines

Summary:
This patch adds a unit test for reading kate modelines.
In particular, the unit test ensures that the following examples work correctly:

  1. kate: variable value;
  2. kate-wildcard(*.txt): variable value;
  3. kate-wildchard(*.foo;*.txt;*.bar): variable value;
  4. kate-modeline(text/plain): variable value;
  5. kate-modeline(text/foo;text/plain;text/bar): variable value;

The unit test found that 3. did not work correctly due to a wrong
bool assignment. This is now fixed.

Test Plan: make test

Reviewers: cullmann, kfunk, mwolff, nalvarez, brauch

Reviewed By: brauch

Subscribers: brauch, Frameworks

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D9569

Details

Committed
dhaumannDec 30 2017, 8:32 PM
Reviewer
brauch
Differential Revision
D9569: Fix wildcard matching for modelines
Parents
R39:1a76f4082583: Fix Unit Test
Branches
Unknown
Tags
Unknown