File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,22 @@ class SectionConfig {
7979 return self . get-inherited-config(' prefix' , ' _rawstr4c' );
8080 }
8181
82- # | RS4C-Mode 或 RS4C- String
82+ # | RS4C-String
8383 method postfix () {
84- return self . get-inherited-config(' postfix' , ' :use-language' );
84+ # RS4C-Mode 或 RS4C-String
85+ my $ config-postfix = self . get-inherited-config(' postfix' , ' :use-language' );
86+
87+ my $ language = self . language. string-value;
88+ my $ postfix ;
89+
90+ if $ config-postfix . is-mode() && $ config-postfix . mode-value() eq ' use-language' {
91+ $ postfix = ' in_' ~ $ language ;
92+ } else {
93+ # 如果不是模式,那就是用户给了一个具体的字符串
94+ $ postfix = $ config-postfix . string-value();
95+ }
96+
97+ return Parser::ConfigItem's-Value. new ($ postfix );
8598 }
8699
87100 # | RS4C-Bool
You can’t perform that action at this time.
0 commit comments