View previous topic :: View next topic |
Author |
Message |
dhasenan
Joined: 03 Feb 2005 Posts: 73 Location: New York
|
Posted: Mon Jun 02, 2008 9:32 pm Post subject: vim syntax file for minid 2 |
|
|
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 |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Tue Jun 03, 2008 8:16 am Post subject: |
|
|
Oo awesome, I was going to make one but I know nothing about vim's highlighting files. Thanks! |
|
Back to top |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Tue Jun 03, 2008 9:00 am Post subject: |
|
|
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 |
|
|
dhasenan
Joined: 03 Feb 2005 Posts: 73 Location: New York
|
Posted: Tue Jun 03, 2008 8:51 pm Post subject: |
|
|
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 |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Tue Jun 10, 2008 1:13 pm Post subject: |
|
|
I've updated the highlighter to work better. It also supports nested comments now. |
|
Back to top |
|
|
|