Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2408962

Browse files
committed
fix the bug of Hyphenated word
1 parent1503d0f commit2408962

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)

[8]ページ先頭

©2009-2025 Movatter.jp