AGS Emacs mode/Keyword list

Started by SSH, Fri 29/08/2003 18:00:44

Previous topic - Next topic

SSH

For those of us who find it helpful to dump everything in a file sometimes and edit it outside AGS, would anyone else appreciate an emacs mode for AGS editing? Emacs is an editor, for the ignorant amongst you. :P ANy suggestions for features?

On a related note, does CJ or anyone else have a text file list of all Script  Keywords and Built-in functions that I can have? Maybe CJ could include this with all main releases as an extra download? This would let me do syntax highlighting more easily.

Finally, the function name completion is great in the built-in editor, I just wish it wouldn't do it when editing dialogs, too. Grrr. :P
12

Pumaman

QuoteOn a related note, does CJ or anyone else have a text file list of all Script Keywords and Built-in functions that I can have?

Script keywords are:
int char short return function string if else while struct import export

The manual index has a list of all the built-in functions. The editor constructs the list automatically from the available functions so I'm afraid I don't have a handy text list of them.

QuoteFinally, the function name completion is great in the built-in editor, I just wish it wouldn't do it when editing dialogs, too. Grrr.  

Don't worry, that's fixed in 2.56 :P

SSH

CJ,

If the help file is the only source, do you have an uncompiled version that I can parse to strip them out, please?

Cheers,
12

Pumaman

Not in a useful fashion that would help you.

However, if you're feeling adventurous, open up the roomedit.clb file in a text editor, scroll down to near the bottom, and you should be able to extract all the function names from there.

morganw

If anyone would like to try it, here is an Emacs major-mode for editing AGS scripts:
https://git.sr.ht/~mew/ags-mode

I've not done much testing with it at the moment but it should provide syntax highlighting and structural editing derived from the built-in C-like language support.

SMF spam blocked by CleanTalk