Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2408962

Browse files
committed
fix the bug of Hyphenated word
1 parent 1503d0f commit 2408962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tsparser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ static const TParserStateActionItem actionTPS_InWord[] = {
11181118
{p_isspecial, 0, A_NEXT, TPS_Null, 0, NULL},
11191119
{p_isdigit, 0, A_NEXT, TPS_InNumWord, 0, NULL},
11201120
{p_iseqC, '-', A_PUSH, TPS_InHyphenWordFirst, 0, NULL},
1121+
{p_iseqC, '_', A_PUSH, TPS_InHyphenWordFirst, 0, NULL},
11211122
{NULL, 0, A_BINGO, TPS_Base, WORD_T, NULL}
11221123
};
11231124

@@ -1641,6 +1642,7 @@ static const TParserStateActionItem actionTPS_InHyphenNumWord[] = {
16411642
{p_isalnum, 0, A_NEXT, TPS_InHyphenNumWord, 0, NULL},
16421643
{p_isspecial, 0, A_NEXT, TPS_InHyphenNumWord, 0, NULL},
16431644
{p_iseqC, '-', A_PUSH, TPS_InHyphenNumWordFirst, 0, NULL},
1645+
{p_iseqC, '_', A_PUSH, TPS_InHyphenNumWordFirst, 0, NULL},
16441646
{NULL, 0, A_BINGO | A_CLRALL, TPS_InParseHyphen, NUMHWORD, SpecialHyphen}
16451647
};
16461648

0 commit comments

Comments
 (0)