Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > question marks in ruby.api for SCiTE

Reply
Thread Tools

question marks in ruby.api for SCiTE

 
 
Matt Smith
Guest
Posts: n/a
 
      10-05-2005
I created a ruby.api for SCiTE, so I can have autocomplete and
calltips, but I'm having a little problem.

The autocomplete and calltips don't work for any of the methods that
end with a question mark (like Array.include?). The autocomplete
truncates everything after the '?' and the calltips are non-existant.

Anyone have any insight/fixes for this problem?

- matt


 
Reply With Quote
 
 
 
 
Damphyr
Guest
Posts: n/a
 
      10-05-2005
Matt Smith wrote:
> I created a ruby.api for SCiTE, so I can have autocomplete and
> calltips, but I'm having a little problem.
>
> The autocomplete and calltips don't work for any of the methods that
> end with a question mark (like Array.include?). The autocomplete
> truncates everything after the '?' and the calltips are non-existant.
>
> Anyone have any insight/fixes for this problem?

Nope, but I would like this api file and then maybe I can help search
for the solution.
I'm sure a couple more of the resident rubytalkers would like to get
their hands on it too.
Cheers,
V.-
--
http://www.braveworld.net/riva

__________________________________________________ __________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.


 
Reply With Quote
 
 
 
 
Neil Hodgson
Guest
Posts: n/a
 
      10-06-2005
'?' is used in Scintilla autocompletion as the default separator
between a name and the number of the icon to display next to it. There
is no SciTE setting to change this but a Lua script can set the
editor.AutoCTypeSeparator property:

function OnOpen(f)
editor.AutoCTypeSeparator=string.byte("~")
end

calltip.<lexer>.word.characters controls which characters are
considered part of identifiers for the purpose of calltip look up. It
may be reasonable to specify

calltip.ruby.word.characters=$(chars.alpha)_?!

More information at
http://scintilla.sourceforge.net/SciTEDoc.html

Neil
 
Reply With Quote
 
Matt Smith
Guest
Posts: n/a
 
      10-06-2005
With HUGE thanks to Neil...

I've managed to cobble together a ruby.api for SCiTE, along with some
property file changes to enable autocomplete and calltips.

Now the question is, where should I put these files so other people
can get to them?

- matt

On 10/5/05, Neil Hodgson <(E-Mail Removed)> wrote:
> '?' is used in Scintilla autocompletion as the default separator
> between a name and the number of the icon to display next to it. There
> is no SciTE setting to change this but a Lua script can set the
> editor.AutoCTypeSeparator property:
>
> function OnOpen(f)
> editor.AutoCTypeSeparator=3Dstring.byte("~")
> end
>
> calltip.<lexer>.word.characters controls which characters are
> considered part of identifiers for the purpose of calltip look up. It
> may be reasonable to specify
>
> calltip.ruby.word.characters=3D$(chars.alpha)_?!
>
> More information at
> http://scintilla.sourceforge.net/SciTEDoc.html
>
> Neil
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thank you Rakudo-Star (and question about SciTE for Perl 6) Dilbert Perl Misc 2 08-08-2010 05:31 PM
[Newby] Scite, irb question Brent W. Hughes Ruby 1 06-23-2005 02:25 AM
not dust marks - water marks! pshaw@emmet.com Digital Photography 0 04-14-2005 05:53 AM
nuby question: question marks in method names Edwin Eyan Moragas Ruby 0 08-30-2004 07:11 AM
SciTE editor question Brent W. Hughes Python 3 05-22-2004 10:59 PM



Advertisments