Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.1Release
-
Fix Version/s: 2.6.1.Release
-
Component/s: Editor
-
Labels:None
-
Environment:Eclipse 3.7, 32 bit
-
Number of attachments :
Description
Syntax highlight doesn't work for slashed strings with $ at end (for example /^\s+$/) - everything after $/ is highlighted as String
Issue Links
- is duplicated by
-
GRECLIPSE-1218
Syntax highlighter is confused by a slashy string composited from substrings and ended by a final "/$/"
-
-
GRECLIPSE-1394
Highlighting does not work, if one uses groovy-regexp ...
-
Groovy 1.8 introduced the Dollar slashy string: http://docs.codehaus.org/display/GROOVY/Groovy+1.8+release+notes#Groovy1.8releasenotes-Dollarslashystrings
Somewhere in your groovy file after the /^s+$/, you must have a /$. Since syntax highlighting of strings is based on regular expressions, I have not yet found an easy way to support both dollar slashy strings and the corner case that you have described.
But, since this is not the first time your problem has come up, it is worth looking into more deeply.