mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Enable semantic highlighting by default
This commit is contained in:
parent
e91ceede17
commit
e929ebdff8
3 changed files with 4 additions and 4 deletions
|
@ -1969,7 +1969,7 @@ public class SemanticHighlightings {
|
|||
* @param store The preference store
|
||||
*/
|
||||
public static void initDefaults(IPreferenceStore store) {
|
||||
store.setDefault(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED, DEBUG);
|
||||
store.setDefault(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED, true);
|
||||
|
||||
SemanticHighlighting[] semanticHighlightings= getSemanticHighlightings();
|
||||
for (int i= 0, n= semanticHighlightings.length; i < n; i++) {
|
||||
|
|
|
@ -829,8 +829,8 @@ class CEditorColoringConfigurationBlock extends AbstractConfigurationBlock {
|
|||
{ createHighlightedRange( 5, 21, 4, SemanticHighlightings.TYPEDEF) },
|
||||
{ createHighlightedRange( 6, 18, 4, SemanticHighlightings.TYPEDEF) },
|
||||
{ createHighlightedRange( 3, 16, 3, SemanticHighlightings.NAMESPACE) },
|
||||
{ createHighlightedRange( 7, 25, 3, SemanticHighlightings.GLOBAL_VARIABLE) },
|
||||
{ createHighlightedRange( 7, 39, 4, SemanticHighlightings.GLOBAL_VARIABLE) },
|
||||
{ createHighlightedRange( 7, 25, 4, SemanticHighlightings.GLOBAL_VARIABLE) },
|
||||
{ createHighlightedRange( 7, 40, 4, SemanticHighlightings.GLOBAL_VARIABLE) },
|
||||
{ createHighlightedRange(18, 0, 5, SemanticHighlightings.LABEL) },
|
||||
{ createHighlightedRange(12, 16, 4, SemanticHighlightings.ENUMERATOR) },
|
||||
{ createHighlightedRange(12, 22, 3, SemanticHighlightings.ENUMERATOR) },
|
||||
|
|
|
@ -5,7 +5,7 @@ using namespace std;
|
|||
// This comment may span only this line
|
||||
typedef unsigned int uint;
|
||||
int static myfunc(uint parameter) {
|
||||
if (parameter == 0) out << "zero" << endl;
|
||||
if (parameter == 0) cout << "zero" << endl;
|
||||
return parameter - 1;
|
||||
}
|
||||
class MyClass {
|
||||
|
|
Loading…
Add table
Reference in a new issue