From 31028168b2d8dd86462b1027b47dc6400a8c539f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 10 Aug 2001 09:35:19 +0000 Subject: [PATCH] small bugfix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2474 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parser.C | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 77364b868e..37e3d4be95 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -523,16 +523,26 @@ latexkeys const * Parser::read_delim() case LM_TK_SYM: case LM_TK_NOGLYPH: case LM_TK_SPECIAL: - case LM_TK_BEGIN: + case LM_TK_BEGIN: { l = lval_; //lyxerr << "found key 1: '" << l << "'\n"; //lyxerr << "found key 1: '" << l->name << "'\n"; break; - case LM_TK_STR: + } + case ']': + case '[': { + string s; + s += ld; + l = in_word_set(s); + //lyxerr << "found key 2: '" << l->name << "'\n"; + break; + } + case LM_TK_STR: { string s; s += ival_; l = in_word_set(s); //lyxerr << "found key 2: '" << l->name << "'\n"; + } } return l; } -- 2.39.2