#DOCUMENTATION
class: AbstractSyntaxHighlighter
changed: #formatMethod:source:in:using:
why convert to Unicoe16String ?
(makes a lot of code slower)
--- a/AbstractSyntaxHighlighter.st Wed Oct 28 09:24:32 2015 +0100
+++ b/AbstractSyntaxHighlighter.st Wed Nov 18 12:58:23 2015 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 2006 by eXept Software AG
All Rights Reserved
@@ -187,7 +185,7 @@
|sourceString|
sourceString := aString string.
- newText := sourceString asUnicode16String asText.
+ newText := sourceString "asUnicode16String" asText.
"/ use an array here (instead of the RunArray) - this can be changed much faster using #at:put:
newText emphasisCollection:(Array new:sourceString size).
@@ -386,6 +384,10 @@
)
!
+isAbstract
+ ^ self == AbstractSyntaxHighlighter
+!
+
isControlFlowSelector:aSelector
"these are considered wellknown, builtin selectors of very common
control flow constructs. Correspond to syntax or special forms in other
@@ -669,11 +671,11 @@
!AbstractSyntaxHighlighter class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libcomp/AbstractSyntaxHighlighter.st,v 1.34 2015-02-27 13:22:47 cg Exp $'
+ ^ '$Header$'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libcomp/AbstractSyntaxHighlighter.st,v 1.34 2015-02-27 13:22:47 cg Exp $'
+ ^ '$Header$'
!
version_SVN