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
Tobias Hunger
qt-creator
Commits
44a5e292
Commit
44a5e292
authored
Aug 18, 2010
by
Roberto Raggi
Browse files
Check the editormanager's current document before to request a new highlight.
parent
f64e7a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
44a5e292
...
...
@@ -1859,12 +1859,14 @@ void CPPEditor::updateSemanticInfo(const SemanticInfo &semanticInfo)
m_highlighter
.
cancel
();
if
(
semanticInfo
.
doc
)
{
LookupContext
context
(
semanticInfo
.
doc
,
semanticInfo
.
snapshot
);
CheckSymbols
::
Future
f
=
CheckSymbols
::
go
(
semanticInfo
.
doc
,
context
);
m_highlighter
=
f
;
m_highlightRevision
=
semanticInfo
.
revision
;
m_nextHighlightBlockNumber
=
0
;
m_highlightWatcher
.
setFuture
(
m_highlighter
);
if
(
Core
::
EditorManager
::
instance
()
->
currentEditor
()
==
editableInterface
())
{
LookupContext
context
(
semanticInfo
.
doc
,
semanticInfo
.
snapshot
);
CheckSymbols
::
Future
f
=
CheckSymbols
::
go
(
semanticInfo
.
doc
,
context
);
m_highlighter
=
f
;
m_highlightRevision
=
semanticInfo
.
revision
;
m_nextHighlightBlockNumber
=
0
;
m_highlightWatcher
.
setFuture
(
m_highlighter
);
}
}
#if 0 // ### TODO: enable objc semantic highlighting
...
...
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