summaryrefslogtreecommitdiff
path: root/app/Core/Lexer.php
diff options
context:
space:
mode:
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')) {