summaryrefslogtreecommitdiff
path: root/app/Core/Lexer.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-01 19:32:51 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-01 19:32:51 -0400
commit471e46e70294684efc6d7edfc814d5b9ca04738b (patch)
treebe35eb01fe0f9222406ec1c3c165a78d07397788 /app/Core/Lexer.php
parent107699e5ed61175cc45eba6d59219d8a40946291 (diff)
Add project and column attributes for advanced search
Diffstat (limited to 'app/Core/Lexer.php')
-rw-r--r--app/Core/Lexer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Core/Lexer.php b/app/Core/Lexer.php
index ad0631d5..d277f998 100644
--- a/app/Core/Lexer.php
+++ b/app/Core/Lexer.php
@@ -31,6 +31,8 @@ class Lexer
"/^(status:)/" => 'T_STATUS',
"/^(description:)/" => 'T_DESCRIPTION',
"/^(category:)/" => 'T_CATEGORY',
+ "/^(column:)/" => 'T_COLUMN',
+ "/^(project:)/" => 'T_PROJECT',
"/^(\s+)/" => 'T_WHITESPACE',
'/^([<=>]{0,2}[0-9]{4}-[0-9]{2}-[0-9]{2})/' => 'T_DATE',
'/^(yesterday|tomorrow|today)/' => 'T_DATE',
@@ -109,6 +111,8 @@ class Lexer
case 'T_ASSIGNEE':
case 'T_COLOR':
case 'T_CATEGORY':
+ case 'T_COLUMN':
+ case 'T_PROJECT':
$next = next($tokens);
if ($next !== false && $next['token'] === 'T_STRING') {