Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
341ffeb6
Commit
341ffeb6
authored
May 21, 2010
by
Leandro Melo
Browse files
Removing some trailing white spaces and a minor fix.
parent
d66d188f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/generichighlighter/dynamicrule.h
View file @
341ffeb6
...
...
@@ -53,7 +53,7 @@ public:
private:
virtual
void
doReplaceExpressions
(
const
QStringList
&
captures
)
=
0
;
bool
m_active
;
bool
m_active
;
};
void
updateDynamicRules
(
const
QList
<
QSharedPointer
<
Rule
>
>
&
rules
,
const
QStringList
&
captures
);
...
...
src/plugins/texteditor/generichighlighter/rule.cpp
View file @
341ffeb6
...
...
@@ -214,8 +214,7 @@ bool Rule::matchEscapeSequence(const QString &text,
if
(
progress
->
offset
()
<
length
)
{
const
QChar
&
c
=
text
.
at
(
progress
->
offset
());
if
(
c
==
kA
||
c
==
kB
||
c
==
kE
||
c
==
kF
||
c
==
kN
||
c
==
kR
||
c
==
kT
||
c
==
kV
||
c
==
kV
||
c
==
kQuestion
||
c
==
kSingleQuote
||
c
==
kQuote
||
c
==
kBackSlash
)
{
c
==
kV
||
c
==
kQuestion
||
c
==
kSingleQuote
||
c
==
kQuote
||
c
==
kBackSlash
)
{
progress
->
incrementOffset
();
return
true
;
}
else
if
(
saveRestoreOffset
)
{
...
...
src/plugins/texteditor/generichighlighter/specificrules.h
View file @
341ffeb6
...
...
@@ -67,7 +67,7 @@ public:
virtual
~
Detect2CharsRule
()
{}
void
setChar
(
const
QString
&
character
);
void
setChar1
(
const
QString
&
character
);
void
setChar1
(
const
QString
&
character
);
private:
virtual
bool
doMatchSucceed
(
const
QString
&
text
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment