diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-28 21:53:50 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-28 21:53:50 -0400 |
commit | 3f084916e3befbaadf8dc86c8329a408dfcdf351 (patch) | |
tree | fcf79fbb59469dea4bb0fe8a8f657bd4bf29695e /app/Core | |
parent | 7c1222fc595091d9e292bae9d563a3fdaf660d7b (diff) |
Add category attribute for advanced search
Diffstat (limited to 'app/Core')
-rw-r--r-- | app/Core/Lexer.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Core/Lexer.php b/app/Core/Lexer.php index ccd29588..ad0631d5 100644 --- a/app/Core/Lexer.php +++ b/app/Core/Lexer.php @@ -30,6 +30,7 @@ class Lexer "/^(due:)/" => 'T_DUE', "/^(status:)/" => 'T_STATUS', "/^(description:)/" => 'T_DESCRIPTION', + "/^(category:)/" => 'T_CATEGORY', "/^(\s+)/" => 'T_WHITESPACE', '/^([<=>]{0,2}[0-9]{4}-[0-9]{2}-[0-9]{2})/' => 'T_DATE', '/^(yesterday|tomorrow|today)/' => 'T_DATE', @@ -107,6 +108,7 @@ class Lexer switch ($token['token']) { case 'T_ASSIGNEE': case 'T_COLOR': + case 'T_CATEGORY': $next = next($tokens); if ($next !== false && $next['token'] === 'T_STRING') { |