From: khartlage Date: Mon, 27 Jan 2003 18:42:22 +0000 (+0000) Subject: bug fix: String are always in BOLD fonts X-Git-Url: http://git.phpeclipse.com bug fix: String are always in BOLD fonts --- 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(