The "additional word characters" are in general just the underscore ( _ ). jEdit allows to configure different word characters for each edit mode. I suggest that the default settings for Ruby already include the exclamation mark ( ! ) and question mark (?), because they can be part of a word (though only as the last character).
In additional, I suggest (for this reason) to have three lists for "additional word characters anywhere in the word", "additional word characters at the start of a word" and "additional word characters at the end of a word". This would allow finer control of what a word is. In Ruby, we could put exclamation mark and question mark to the "word end list", and the colon (:) to the start word list (because a leading colon denotes a "symbol" and can be considered part of the word, while a trailing colon is a special type of separator in a hash).
Log in to post a comment.