diff options
author | Francois Ferrand <[email protected]> | 2016-09-12 13:42:42 +0200 |
---|---|---|
committer | Francois Ferrand <[email protected]> | 2016-12-05 10:27:58 +0000 |
commit | 38ae5aec1055e4dea2db5f1f9c9ec3b5ae618265 (patch) | |
tree | 9a11846470090fee7ba2a309f00bdd6d2e8f1da0 /src/libs/cplusplus | |
parent | 8f0ddff1ccb402d8fdc68ec0612920547d12876a (diff) |
C++: Fix handling of Objective-C/C++
- Objective C/C++ was not enabled in highlighter.
- QMake project part for Objective C/C++ did not have ObjectiveC extension enabled.
- As languageFeatures.objCEnabled is a bitfield, it was actually always set to 0.
- Highlight ObjC class & protocol declarations.
- Highlight ObjC message passing.
Change-Id: I64d12c9509058d05f7adce94598cb7ce91727ac8
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/cplusplus')
-rw-r--r-- | src/libs/cplusplus/MatchingText.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp index 86b37c97c7b..6a426ee4684 100644 --- a/src/libs/cplusplus/MatchingText.cpp +++ b/src/libs/cplusplus/MatchingText.cpp @@ -203,6 +203,7 @@ static Tokens getTokens(const QTextCursor &cursor, int &prevState) features.cxx11Enabled = true; features.cxxEnabled = true; features.c99Enabled = true; + features.objCEnabled = true; SimpleLexer tokenize; tokenize.setLanguageFeatures(features); |