FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

vim syntax file for minid 2

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
dhasenan



Joined: 03 Feb 2005
Posts: 73
Location: New York

PostPosted: Mon Jun 02, 2008 9:32 pm    Post subject: vim syntax file for minid 2 Reply with quote

http://damask-mud.googlecode.com/svn/trunk/minid.vim

Basically a slightly hacked up version of the javascript syntax file for vim. If you want to use it, you'll have to modify $VIMDIR/filetype.vim or some such by adding the following lines:
Code:
# MiniD script
au BufNewFile,BufRead *.md setf minid

The syntax file should more or less support minid 1 and 2, maybe.
Back to top
View user's profile Send private message AIM Address
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Tue Jun 03, 2008 8:16 am    Post subject: Reply with quote

Oo awesome, I was going to make one but I know nothing about vim's highlighting files. Thanks!
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Tue Jun 03, 2008 9:00 am    Post subject: Reply with quote

Out of curiosity I had a look at your MUD code, and I noticed stuff like this:

Code:
object Room : Entity
{
   people
   things
   function writeAllBut(actors : array, vararg)
   {
      foreach (person; people)
         if (!contains(actors, person)) person.write(vararg)
   }
}


This won't work, because members of 'this' cannot be implicitly accessed like in MD1. It has to be written "foreach(person; :people)". The issue is in other code as well.
Back to top
View user's profile Send private message
dhasenan



Joined: 03 Feb 2005
Posts: 73
Location: New York

PostPosted: Tue Jun 03, 2008 8:51 pm    Post subject: Reply with quote

Yeah, such things happen when you can't compile or run your code and are working with a language you've never used before. Thanks.
Back to top
View user's profile Send private message AIM Address
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Tue Jun 10, 2008 1:13 pm    Post subject: Reply with quote

I've updated the highlighter to work better. It also supports nested comments now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group