new Vim syntax for Rebol
[1/10] from: eric::mccinc::com at: 19-Oct-2000 14:48
hello all,
If any of you are VIM (as VI Improved). I have just updated the syntax
file for REBOL. It still needs a little tweaking but it should be ready in
a few days. As a side note there seem to be allot of new keywords etc. That
aren't included in the core/dictionary or in the user guide, is there a way
that I can find out what these are so that i can include them in the new
file.
Thanks
[2/10] from: eventi:nyic at: 19-Oct-2000 15:17
And how would one acquire it? THANKS IN ADVANCE...
[3/10] from: eric:mccinc at: 19-Oct-2000 16:01
At the moment I can email it to you if you would like. Later on I will see
if I can't post it on the web or at the vim.org site. I have spoken with
Mike, the current maintainer of the official vim syntax for rebol and he
suggested that I become the maintainer. So in the future an updated syntax
may be available from vim.org. Well see on that one.
As for this one I would at the moment consider this one beta, so if you
find any problems or notice that anything is missing please let me know.
Once it is posted somewhere, in the next couple of weeks, I will let
everyone know.
Thanks
[4/10] from: al:bri:xtra at: 20-Oct-2000 9:16
Eric wrote:
> > I have just updated the syntax file for REBOL. It still needs a little
tweaking but it should be ready in a few days. As a side note there seem to
be a lot of new keywords etc. That aren't included in the core/dictionary or
in the user guide, is there a way that I can find out what these are so that
I can include them in the new file?
system/words
and pick out words that are function! and/or object! data-type.
Eric wrote:
> Later on I will see if I can't post it on the web or at the vim.org site.
I have spoken with Mike, the current maintainer of the official vim syntax
for rebol and he suggested that I become the maintainer. So in the future an
updated syntax may be available from vim.org. Well see on that one.
Why not write a Rebol script that can generates a VIM Syntax file? Then you
don't have to worry about it, and it works for people's extensions to Rebol
too!
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
[5/10] from: ingo:2b1 at: 19-Oct-2000 21:07
Hi Eric,
besides from there being no keywords in rebol, you can use
'what
to get a list of all words in the toplevel context which
happen to be bound to a function at the moment.
I hope that helps,
Ingo
Once upon a time [eric--mccinc--com] spoketh thus:
[6/10] from: eric:mccinc at: 19-Oct-2000 16:42
Thank you! That should help alot.
[7/10] from: eric:mccinc at: 19-Oct-2000 16:52
Andrew,
Sorry I was a lttle to quick with my previous reply. That is a great Idea!
I think that it would not be all that hard as well, Just base the highlight
off of actual values. But what whould you do about the statements that are
not keywords but specialized strings such as urls, file locations etc. Mybe
some type of hybrid. I'll think on it.
[8/10] from: eric:mccinc at: 19-Oct-2000 17:05
Ingo,
As keywords I mean words that are built into the language. All the words
in the Rebol/core dictionary qualify for this. I realize that users can
create thier own words but these I do not think fit in the same category.
[9/10] from: ingo:2b1 at: 20-Oct-2000 20:31
Hi Eric,
I know what you meant, but I think it's best to
always remember that there aren't keywords in
rebol, otherwise you might run into trouble some
day.
Ingo
Once upon a time [eric--mccinc--com] spoketh thus:
[10/10] from: eric:mccinc at: 20-Oct-2000 16:26
Ingo,
Yea this is true but if I let myself think that for the purposes of
syntax highlighting the it would defeat the purpose. Becuase one of the
main things you highlight are keywords. LoL. I will however keep your
admonition in mind, maybe it will help me get my mind around this language.