Cheers,
Chris.
> --
> You received this message because you are subscribed to the Google Groups "evergreen-users" group.
> To post to this group, send email to evergre...@googlegroups.com.
> To unsubscribe from this group, send email to evergreen-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/evergreen-users?hl=en.
>
>
--
Elliott Hughes - http://www.jessies.org/~enh/
This appears to achieve that end:
car@surfing:~/Projects/salma-hayek$ svn diff
Index: src/e/ptextarea/PRubyTextStyler.java
===================================================================
--- src/e/ptextarea/PRubyTextStyler.java (revision 3257)
+++ src/e/ptextarea/PRubyTextStyler.java (working copy)
@@ -5,6 +5,11 @@
super(textArea);
}
+ @Override protected String getKeywordRegularExpression() {
+ // Ruby symbols begin with a :, and for any keyword k, :k is a valid
identifier.
+ return "\\b(?<!:)([A-Za-z_]+)\\b";
+ }
+
@Override public void initStyleApplicators() {
super.initStyleApplicators();
// An approximate attempt to recognize Ruby regular expression literals.
But it's an almost direct copy of the example from PHP's styler. The : match
part's a gimme, but I'm not confident that the remaining part of the regex
exactly right. It appears to capture all of the keywords... I can commit
this if you're happy, otherwise I'm happy wait until I've got time to dig a
little further.
Cheers,
Chris.