mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
CtrlCore: Fixed workares issue in X11/GTK, various cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7336 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f59fe47620
commit
e2b5d44cc8
32 changed files with 87 additions and 56 deletions
|
|
@ -217,7 +217,7 @@ void ASEnhancer::enhance(WString &line)
|
|||
}
|
||||
|
||||
// handle quotes (such as 'x' and "Hello Dolly")
|
||||
if (!(isInComment) && (ch == '"' || ch == '\''))
|
||||
if (!(isInComment) && (ch == '"' || ch == '\'')) {
|
||||
if (!isInQuote)
|
||||
{
|
||||
quoteChar = ch;
|
||||
|
|
@ -228,6 +228,7 @@ void ASEnhancer::enhance(WString &line)
|
|||
isInQuote = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (isInQuote)
|
||||
continue;
|
||||
|
|
@ -335,11 +336,12 @@ void ASEnhancer::enhance(WString &line)
|
|||
}
|
||||
for (; i < lineLength; i++) // bypass colon
|
||||
{
|
||||
if (line[i] == ':')
|
||||
if (line[i] == ':') {
|
||||
if ((i + 1 < lineLength) && (line[i + 1] == ':'))
|
||||
i++; // bypass scope resolution operator
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
for (; i < lineLength; i++) // bypass whitespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue