mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
Restore task tags highlighting
This commit is contained in:
parent
464454a15a
commit
0bfec5774b
1 changed files with 9 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
|
* Anton Leherbauer (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.text;
|
package org.eclipse.cdt.internal.ui.text;
|
||||||
|
|
||||||
|
@ -106,10 +107,16 @@ public class CCommentScanner extends AbstractCScanner
|
||||||
protected List createRules() {
|
protected List createRules() {
|
||||||
List list= new ArrayList();
|
List list= new ArrayList();
|
||||||
|
|
||||||
if (fCorePreferenceStore != null) {
|
String tasks= null;
|
||||||
|
if (getPreferenceStore().contains(TRANSLATION_TASK_TAGS)) {
|
||||||
|
tasks= getPreferenceStore().getString(TRANSLATION_TASK_TAGS);
|
||||||
|
} else if (fCorePreferenceStore != null) {
|
||||||
|
tasks= fCorePreferenceStore.getString(TRANSLATION_TASK_TAGS);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tasks != null) {
|
||||||
// Add rule for Task Tags.
|
// Add rule for Task Tags.
|
||||||
fTaskTagRule= new TaskTagRule(getToken(TASK_TAG));
|
fTaskTagRule= new TaskTagRule(getToken(TASK_TAG));
|
||||||
String tasks= fCorePreferenceStore.getString(TRANSLATION_TASK_TAGS);
|
|
||||||
fTaskTagRule.addTaskTags(tasks);
|
fTaskTagRule.addTaskTags(tasks);
|
||||||
list.add(fTaskTagRule);
|
list.add(fTaskTagRule);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue