@@ -74,30 +74,34 @@ bool ProfileSetting::GetSettings(Setting &info) const
7474 bool bRetVal = true ;
7575
7676 int nVal = 0 ;
77- bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_EOL, nVal);
77+ bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_EOL, nVal, static_cast < int >(info. lineEnding ) );
7878 if (bRetVal)
7979 info.lineEnding = static_cast <LineEnding>(nVal);
8080
81- bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_LINE, nVal);
81+ bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_LINE, nVal, static_cast < int >(info. lineFormat ) );
8282 if (bRetVal)
8383 info.lineFormat = static_cast <LineFormat>(nVal);
8484
85- bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_INDENT, nVal);
85+ bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_INDENT, nVal, static_cast < int >(info. indent . style ) );
8686 if (bRetVal)
8787 info.indent .style = static_cast <IndentStyle>(nVal);
8888
8989 bRetVal &= ReadValue (STR_INI_FORMATTING_SEC, STR_INI_FORMATTING_INDENTCOUNT, nVal, info.indent .len );
9090 if (bRetVal)
9191 info.indent .len = nVal;
9292
93- bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_FOLLOW_TAB, nVal);
93+ bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_FOLLOW_TAB, nVal, info. bFollowCurrentTab );
9494 if (bRetVal)
9595 info.bFollowCurrentTab = static_cast <bool >(nVal);
9696
97- bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_AUTO_FORMAT, nVal);
97+ bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_AUTO_FORMAT, nVal, info. bAutoFormat );
9898 if (bRetVal)
9999 info.bAutoFormat = static_cast <bool >(nVal);
100100
101+ bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_USE_HIGHLIGHT, nVal, info.bUseJsonHighlight );
102+ if (bRetVal)
103+ info.bUseJsonHighlight = static_cast <bool >(nVal);
104+
101105 bRetVal &= ReadValue (STR_INI_OTHER_SEC, STR_INI_OTHER_IGNORE_COMMENT, nVal, info.parseOptions .bIgnoreComment );
102106 if (bRetVal)
103107 info.parseOptions .bIgnoreComment = static_cast <bool >(nVal);
@@ -120,6 +124,7 @@ bool ProfileSetting::SetSettings(const Setting &info) const
120124
121125 bRetVal &= WriteValue (STR_INI_OTHER_SEC, STR_INI_OTHER_FOLLOW_TAB, info.bFollowCurrentTab );
122126 bRetVal &= WriteValue (STR_INI_OTHER_SEC, STR_INI_OTHER_AUTO_FORMAT, info.bAutoFormat );
127+ bRetVal &= WriteValue (STR_INI_OTHER_SEC, STR_INI_OTHER_USE_HIGHLIGHT, info.bUseJsonHighlight );
123128 bRetVal &= WriteValue (STR_INI_OTHER_SEC, STR_INI_OTHER_IGNORE_COMMENT, info.parseOptions .bIgnoreComment );
124129 bRetVal &= WriteValue (STR_INI_OTHER_SEC, STR_INI_OTHER_IGNORE_COMMA, info.parseOptions .bIgnoreTraillingComma );
125130
0 commit comments