summaryrefslogtreecommitdiff
path: root/app/Core/Lexer.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-28 21:04:37 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-28 21:04:37 -0400
commit7c1222fc595091d9e292bae9d563a3fdaf660d7b (patch)
treeffdb99b873ab1269b637e9f2cee879777803b03a /app/Core/Lexer.php
parent2e7e7031804b09a04c83896535b31acb12138960 (diff)
Add description attribute for advanced search
Diffstat (limited to 'app/Core/Lexer.php')
-rw-r--r--app/Core/Lexer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Core/Lexer.php b/app/Core/Lexer.php
index 34d85704..ccd29588 100644
--- a/app/Core/Lexer.php
+++ b/app/Core/Lexer.php
@@ -29,7 +29,7 @@ class Lexer
"/^(color:)/" => 'T_COLOR',
"/^(due:)/" => 'T_DUE',
"/^(status:)/" => 'T_STATUS',
- "/^(title:)/" => 'T_TITLE',
+ "/^(description:)/" => 'T_DESCRIPTION',
"/^(\s+)/" => 'T_WHITESPACE',
'/^([<=>]{0,2}[0-9]{4}-[0-9]{2}-[0-9]{2})/' => 'T_DATE',
'/^(yesterday|tomorrow|today)/' => 'T_DATE',
@@ -117,6 +117,7 @@ class Lexer
case 'T_STATUS':
case 'T_DUE':
+ case 'T_DESCRIPTION':
$next = next($tokens);
if ($next !== false && ($next['token'] === 'T_DATE' || $next['token'] === 'T_STRING')) {