summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-20 19:11:27 (GMT)
committerGitHub <noreply@github.com>2018-12-20 19:11:27 (GMT)
commit7f8c72b3ee738e561204fb7ffdccdce056375d76 (patch)
tree036ab3c24484483173f9e38d950981624fd770f4 /src/doctokenizer.l
parentf176d76f98497757e569b58fb2f142595ff1c967 (diff)
parenta06e660406d655568635521f6df161e3a7e5734b (diff)
downloadDoxygen-7f8c72b3ee738e561204fb7ffdccdce056375d76.zip
Doxygen-7f8c72b3ee738e561204fb7ffdccdce056375d76.tar.gz
Doxygen-7f8c72b3ee738e561204fb7ffdccdce056375d76.tar.bz2
Merge pull request #6699 from albert-github/feature/bug_emoji_false_positive
issue #6691 Multiple issues with emoji matching
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 52c2d53..4dc5fad 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -689,7 +689,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->name = yytext;
return TK_SYMBOL;
}
-<St_Para,St_Text>{EMOJI} { /* emoji symbol */
+<St_Para,St_Text>{EMOJI}/[^:] { /* emoji symbol */
if (g_fileName == CiteConsts::fileName)
{
REJECT;
@@ -946,7 +946,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->name = yytext;
return TK_SYMBOL;
}
-<St_TitleN>{EMOJI} { /* emoji */
+<St_TitleN>{EMOJI}/[^:] { /* emoji */
if (g_fileName == CiteConsts::fileName)
{
REJECT;
@@ -993,7 +993,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->name = yytext;
return TK_SYMBOL;
}
-<St_TitleQ>{EMOJI} { /* emoji */
+<St_TitleQ>{EMOJI}/[^:] { /* emoji */
if (g_fileName == CiteConsts::fileName)
{
REJECT;
@@ -1143,7 +1143,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->name = yytext;
return TK_SYMBOL;
}
-<St_Ref2>{EMOJI} { /* emoji */
+<St_Ref2>{EMOJI}/[^:] { /* emoji */
if (g_fileName == CiteConsts::fileName)
{
REJECT;