From c7942e874f3e06d5bb0bcecab4677880150f039c Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 13 Sep 2012 21:04:28 +0200 Subject: Remove duplicated branch in PO lexer --- lexers/LexPO.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lexers') diff --git a/lexers/LexPO.cxx b/lexers/LexPO.cxx index d1ccda394..ced58efe2 100644 --- a/lexers/LexPO.cxx +++ b/lexers/LexPO.cxx @@ -11,6 +11,7 @@ // TODO: // * add keywords for flags (fuzzy, c-format, ...) // * highlight formats inside c-format strings (%s, %d, etc.) +// * style for previous untranslated string? ("#|" comment) #include #include @@ -108,8 +109,6 @@ static void ColourisePODoc(unsigned int startPos, int length, int initStyle, Wor sc.SetState(SCE_PO_REFERENCE); else if (sc.chNext == ',') sc.SetState(SCE_PO_FLAGS); - else if (sc.chNext == '|') - sc.SetState(SCE_PO_COMMENT); // previous untranslated string, no special style yet else sc.SetState(SCE_PO_COMMENT); } else if (atLineStart && sc.Match("msgid")) { // includes msgid_plural -- cgit v1.2.3