tools/GroovySourceHighlighter.st
branchcvs_MAIN
changeset 3457 79bd6f4141fc
parent 3324 a58245c0e83a
child 3459 d35ab9a95801
--- a/tools/GroovySourceHighlighter.st	Wed May 13 15:59:32 2015 +0200
+++ b/tools/GroovySourceHighlighter.st	Sun Jun 21 19:08:55 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1996-2015 by Claus Gittinger
 
@@ -20,6 +22,8 @@
 "
 "{ Package: 'stx:libjava/tools' }"
 
+"{ NameSpace: Smalltalk }"
+
 Object subclass:#GroovySourceHighlighter
 	instanceVariableNames:'preferences cachedStringEmphasis cachedStringColor sourceText
 		sourceIndex'
@@ -64,7 +68,10 @@
 documentation
 "
     A syntax highligter for Groovy. This highlighter is SmallSense-aware and
-    supports incremental highlighting, however, it does only lexical highlighting.
+    supports incremental highlighting.
+    However, it does only lexical highlighting. I.e. it has no idea of Groovy syntax,
+    and only cares for keywords vs. non-keywords.
+    Definitely needs improvement.
 
     [author:]
         Jan Vrany <jan.vrany@fit.cvut.cz>
@@ -237,6 +244,7 @@
     "Simple formatting based on lexical structure only"
 
     | scanner token lastToken0 lastToken1 lastValue0 lastValue1 lastPosition0 lastPosition1 |
+
     sourceText := source asText.
     scanner := Scanner for: source string.
     scanner highlighter: self.
@@ -711,6 +719,14 @@
 
 !GroovySourceHighlighter class methodsFor:'documentation'!
 
+version
+    ^ '$Header$'
+!
+
+version_CVS
+    ^ '$Path: stx/libjava/tools/GroovySourceHighlighter.st, Version: 1.0, User: cg, Time: 2015-06-21T19:08:55.688+02$'
+!
+
 version_HG
 
     ^ '$Changeset: <not expanded> $'