Well, vim defines 'word' and 'WORD'. I think that that is a good starting point. Vim words are similar to Geany's word parts, except when words are camel-cased.
I actually think that Geany's word matching is quite broken, because it treats punctuation as whitespace. Steven, you may be interested in the Lua scripts that I wrote to replace the built-in word matching; they use word parts, so they don't skip underscores.
------------------------------ On Mon, Jul 29, 2013 12:03 PM AEST Lex Trotman wrote:
It has never been defined what a "word" is in the context of the filetype files. I would have assumed that it meant "identifier" characters, but since the wordchars setting is commented out in all filetypes files, all languages must only use C identifier characters (the default) :)
Even CSS which (correctly) has the dash added to the list is commented out. Its been that way since Enrico added the dash 5 years ago, so nobody seems to be too worried.
So Liviu and Thrawn you are pioneering new territory unless someone wants to define what a "word" actually means. Note also it can't include any Unicode chars >0x100 due to Scintilla limitations so its not possible to make it "right" on newer languages.
Cheers Lex
On 29 July 2013 09:55, Thrawn shell_layer-geany@yahoo.com.au wrote:
I disagree. Do you really want Ctrl+left and Ctrl+right to skip over dots within words as if they were letters? I don't.
What's your reasoning?
Thrawn
On Sat, Jul 27, 2013 11:18 PM AEST Liviu Andronic wrote:
Dear devels, The filetypes.r currently shipped with Geany contains the following wordchars definition: #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
The correct definition should be the following (dot, underscore, and alpha-numerics): wordchars=_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel