summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorkbinani <kbinani.bt@gmail.com>2014-12-01 11:06:53 (GMT)
committerkbinani <kbinani.bt@gmail.com>2014-12-01 11:28:08 (GMT)
commita4cf65dea1371721f07c63c2bb5f9e5085b2618a (patch)
tree94f012b608a45fd6869f3e11bc076c7d91295bb9 /src/commentscan.l
parent3b10b5b61a190018a46a05793d6c179e5fe3ea3b (diff)
downloadDoxygen-a4cf65dea1371721f07c63c2bb5f9e5085b2618a.zip
Doxygen-a4cf65dea1371721f07c63c2bb5f9e5085b2618a.tar.gz
Doxygen-a4cf65dea1371721f07c63c2bb5f9e5085b2618a.tar.bz2
Fix bug: language switch command "\~" failed to detect language id which contains '-'
Support language switch for language ids, 'Japanese-en', 'Korean-en', 'Serbian-Cyrillic', and similer langauge ids.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 3bfd563..702a616 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1120,7 +1120,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
<Comment>{B}*("\\\\"|"@@")"f"[$\[{] { // escaped formula command
addOutput(yytext);
}
-<Comment>{B}*{CMD}"~"[a-z_A-Z]* { // language switch command
+<Comment>{B}*{CMD}"~"[a-z_A-Z-]* { // language switch command
QCString langId = QString(yytext).stripWhiteSpace().data()+2;
if (!langId.isEmpty() &&
qstricmp(Config_getEnum("OUTPUT_LANGUAGE"),langId)!=0)
@@ -2160,7 +2160,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
/* ----- handle language specific sections ------- */
-<SkipLang>[\\@]"~"[a-zA-Z]* { /* language switch */
+<SkipLang>[\\@]"~"[a-zA-Z-]* { /* language switch */
QCString langId = &yytext[2];
if (langId.isEmpty() ||
qstricmp(Config_getEnum("OUTPUT_LANGUAGE"),langId)==0)