jEdit edit mode for Hugo
Moderators: Ice Cream Jonsey, joltcountry
-
- Posts: 4
- Joined: Mon Apr 11, 2005 2:13 am
- Location: Abuja, Nigeria
- Contact:
jEdit edit mode for Hugo
I'm just getting started with Hugo, so I immediately distracted myself from learning it by writing a Hugo edit mode for my text editor of choice, jEdit.
Anybody else who uses jEdit can download the mode file from here: http://www.caboose.org.uk/dev/hugo/hugo.xml Installation instructions are in the comments at the top of the XML file.
One problem I encountered while writing the edit mode was that there doesn't seem to be a comprehensive list of keywords in the Hugo Book. For example, 'global' doesn't appear in Appendix A's summary of keywords and commands. Have I overlooked some documentation somewhere or should I check the source for a definitive list?
OW
Anybody else who uses jEdit can download the mode file from here: http://www.caboose.org.uk/dev/hugo/hugo.xml Installation instructions are in the comments at the top of the XML file.
One problem I encountered while writing the edit mode was that there doesn't seem to be a comprehensive list of keywords in the Hugo Book. For example, 'global' doesn't appear in Appendix A's summary of keywords and commands. Have I overlooked some documentation somewhere or should I check the source for a definitive list?
OW
- pinback
- Posts: 17927
- Joined: Sat Apr 27, 2002 3:00 pm
- Contact:
-
- Posts: 4
- Joined: Mon Apr 11, 2005 2:13 am
- Location: Abuja, Nigeria
- Contact:
- pinback
- Posts: 17927
- Joined: Sat Apr 27, 2002 3:00 pm
- Contact:
- Ice Cream Jonsey
- Posts: 30193
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: jEdit edit mode for Hugo
I don't think so. I think that's the one Pinback pulled from when he made a similar file for EditPlus2.OrangeWindies wrote:Have I overlooked some documentation somewhere or should I check the source for a definitive list?
Though Kent usually pops in before too long, so I'm sure we'll get the definitive answer shortly.
Robb
the dark and gritty...Ice Cream Jonsey!
-
- Posts: 119
- Joined: Fri Jun 27, 2003 12:10 pm
Hmm. The definitive list of tokens/keywords recognized by the compiler is in the Hugo Book starting on page 228 or so. Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:
array
attribute
class
compound
constant
enumerate
event
global
object
property
punctuation
removal
replace
routine
synonym
verb
xverb
I think that's it--if you're feeling adventurous you can peek at hcpass.c in the Hugo source code to see what the Pass1() function looks at to start parsing source code.
(Yeah, at some point it would be good to consolidate this all in one place. The next edition of the Hugo Book.)
array
attribute
class
compound
constant
enumerate
event
global
object
property
punctuation
removal
replace
routine
synonym
verb
xverb
I think that's it--if you're feeling adventurous you can peek at hcpass.c in the Hugo source code to see what the Pass1() function looks at to start parsing source code.
(Yeah, at some point it would be good to consolidate this all in one place. The next edition of the Hugo Book.)
-
- Posts: 55
- Joined: Wed May 05, 2004 4:35 am
- Location: Chicago, IL
- Contact:
That is probably something I should note in my documentation as well. I had written a "Keywords" section and I had included the very things you list here as being "elements for the compiler."Kent wrote:Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:
I should probably update that.
- Jeff
-
- Posts: 4
- Joined: Mon Apr 11, 2005 2:13 am
- Location: Abuja, Nigeria
- Contact:
-
- Posts: 73
- Joined: Mon Jun 28, 2004 4:45 pm
- Location: Minneapolis, Minnesota
Hugo Lib by Doxygen
Kent asked if it did a good job. I'm not the one to properly evaluate it. Someone who knows what they're looking at, let us know if it's any good! :)
http://hugonomicon.sf.net/hugodox/html/
http://hugonomicon.sf.net/hugodox/html/