Hello
I have this word in completation list "split-path" if I type "spli" and esc key it does work if I type "split-" and esc it doesn't what should I do?
also for color syntax, I'd like "value?" to be recognized but this doesn't work: { name = 'rebol.words'; match = '\b(value?)\b'; },
thank you! Will
Will,
"-" is not a word character, so "split-path" is not recognized as a single word. If you open TextMate preferences, under Text Editing, there is a list of "word characters". You would have to add "-" there. That would be my guess. On Jan 26, 2006, at 11:45 AM, Will Arp wrote:
Hello
I have this word in completation list "split-path" if I type "spli" and esc key it does work if I type "split-" and esc it doesn't what should I do?
also for color syntax, I'd like "value?" to be recognized but this doesn't work: { name = 'rebol.words'; match = '\b(value?)\b'; },
thank you! Will
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris
Haris, thank you! so easy!!! Viva TextMate!! wow
Will)
On 26-gen-06, at 23:38, Charilaos Skiadas wrote:
Will,
"-" is not a word character, so "split-path" is not recognized as a single word. If you open TextMate preferences, under Text Editing, there is a list of "word characters". You would have to add "-" there. That would be my guess. On Jan 26, 2006, at 11:45 AM, Will Arp wrote:
Hello
I have this word in completation list "split-path" if I type "spli" and esc key it does work if I type "split-" and esc it doesn't what should I do?
also for color syntax, I'd like "value?" to be recognized but this doesn't work: { name = 'rebol.words'; match = '\b(value?)\b'; },
thank you! Will
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 26/1/2006, at 18:45, Will Arp wrote:
also for color syntax, I'd like "value?" to be recognized but this doesn't work: { name = 'rebol.words'; match = '\b(value?)\b'; },
\b is a word-boundary. Since ? is not a word character, there is no word-boundary after the question mark.
So either make it: match = '\b(value?)'; (the parenthesis is redundant btw) or if you want to ensure that no word-character follow “value?” then: match = '\b(value?)(?!\w)'; The latter here is a negative look-ahead assertion on a word character (meaning it ensures that the next character is not a word character).
Btw: your naming of the elements is wrong, it should be the most general clasification first, then specializing it, and lastly the name of the language. For more info see [1]
[1] http://macromates.com/textmate/manual/ language_grammars#naming_conventions