Update JSBaker.cpp

This commit is contained in:
utkarshgautamnyu 2017-09-28 13:24:03 -07:00 committed by GitHub
parent 16a75d20dc
commit 5c14c7c3b9

View file

@ -221,7 +221,7 @@ bool JSBaker::isNonAscii(QChar c) {
// If previous and next characters are special characters, don't omit space
bool JSBaker::isSpecialCharacter(QChar c) {
return (c == '\'' || c == '$' || c == '_' || c == '/');
return (c == '\'' || c == '$' || c == '_' || c == '/' || c== '+' || c == '-');
}
// If previous character is a special character, maybe don't omit new line (depends on next character as well)