From 31514655c00b2841fb5a39d91f7988876cdd63a4 Mon Sep 17 00:00:00 2001 From: khartlage Date: Mon, 27 Jan 2003 18:42:22 +0000 Subject: [PATCH] bug fix: String are always in BOLD fonts --- .../phpeclipse/phpeditor/php/PHPCodeScanner.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java index e3ca314..6a5040c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java @@ -146,13 +146,13 @@ public class PHPCodeScanner extends RuleBasedScanner implements IPreferenceConst provider.getColor(PreferenceConverter.getColor(store, PHP_STRING)), BackgroundColor, //SWT.NONE)); - (store.getBoolean(PHP_STRING_BOLD) ? SWT.NONE : SWT.BOLD) + (store.getBoolean(PHP_STRING_ITALIC) ? SWT.ITALIC : SWT.NONE))); + (store.getBoolean(PHP_STRING_BOLD) ? SWT.BOLD : SWT.NONE ) + (store.getBoolean(PHP_STRING_ITALIC) ? SWT.ITALIC : SWT.NONE))); comment = new Token(new TextAttribute( provider.getColor(PreferenceConverter.getColor(store, PHP_SINGLELINE_COMMENT)), BackgroundColor, //SWT.NONE)); - (store.getBoolean(PHP_SINGLELINE_COMMENT_BOLD) ? SWT.NONE : SWT.BOLD) + (store.getBoolean(PHP_SINGLELINE_COMMENT_BOLD) ? SWT.BOLD : SWT.NONE ) + (store.getBoolean(PHP_SINGLELINE_COMMENT_ITALIC) ? SWT.ITALIC : SWT.NONE))); multi_comment = new Token(new TextAttribute( -- 1.7.1