From 7c1222fc595091d9e292bae9d563a3fdaf660d7b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 28 Jun 2015 21:04:37 -0400 Subject: Add description attribute for advanced search --- app/Core/Lexer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Core/Lexer.php') 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')) { -- cgit v1.2.3