#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sat, 21 Oct 2017 15:25:57 +0200
changeset 4203 9b35cbc718a2
parent 4202 b74cb013e847
child 4204 5c7ceedefc3b
#REFACTORING by cg class: SyntaxHighlighter removed: #markCommentFrom:to: #markConstantFrom:to: changed: #initialize
SyntaxHighlighter.st
--- a/SyntaxHighlighter.st	Sat Oct 21 15:25:24 2017 +0200
+++ b/SyntaxHighlighter.st	Sat Oct 21 15:25:57 2017 +0200
@@ -175,12 +175,11 @@
     foldConstants := false.
 "/    parserFlags allowDollarInIdentifier:true.
 
-    preferences := UserPreferences current.
-
+    self preferences:(UserPreferences current).
     fullSelectorCheck := preferences fullSelectorCheck.
 
     "Created: / 31-03-1998 / 15:12:55 / cg"
-    "Modified: / 08-02-2017 / 00:31:32 / cg"
+    "Modified: / 21-10-2017 / 14:20:27 / cg"
 ! !
 
 !SyntaxHighlighter methodsFor:'syntax detection'!
@@ -360,29 +359,6 @@
     "Modified: / 31.3.1998 / 18:02:14 / cg"
 !
 
-markCommentFrom:pos1 to:pos2
-    self 
-        markFrom:pos1 to:pos2 
-        withEmphasis:(preferences commentEmphasis) 
-        color:(preferences commentColor)
-        font:(preferences commentFont)
-
-    "
-     UserPreferences current commentEmphasis
-    "
-    "Modified: / 31.3.1998 / 18:01:55 / cg"
-!
-
-markConstantFrom:pos1 to:pos2
-    self 
-        markFrom:pos1 to:pos2 
-        withEmphasis:(preferences constantEmphasis) 
-        color:(preferences constantColor)
-
-    "Modified: / 31.3.1998 / 18:01:44 / cg"
-    "Created: / 31.3.1998 / 18:09:22 / cg"
-!
-
 markGlobalClassIdentifierFrom:pos1 to:pos2
     self 
         markFrom:pos1 to:pos2