|
From: Christopher W. <caw...@us...> - 2006-05-19 11:30:36
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24508/src/org/rubypeople/rdt/internal/ui/text Modified Files: PercentSyntaxRule.java Log Message: handle %w and %W shorthand for array of strings (don't mark it as single % case) Index: PercentSyntaxRule.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/PercentSyntaxRule.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PercentSyntaxRule.java 12 May 2006 21:39:35 -0000 1.1 --- PercentSyntaxRule.java 19 May 2006 11:30:23 -0000 1.2 *************** *** 20,23 **** --- 20,29 ---- case 'Q': // strings return detectToken(scanner, IRubyPartitions.RUBY_STRING); + case 'w': + case 'W': // Array of strings + scanner.unread(); + scanner.unread(); + // FIXME Mark teh individual elements as strings + return Token.UNDEFINED; default: // special case of string (no letter following percent) scanner.unread(); |