YASH (Yet Another Syntax Highligher)

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: YASH (Yet Another Syntax Highligher)

by Roody_Yogurt » Mon Jan 02, 2012 4:23 pm

Yeah, his choice of block comment code is a little strange. Since much of Hugo's design is, um, inspired by Inform 6, he probably got the exclamation-mark-as-comment from there and made up his own multi-line version.

Also, TADS has kind of always been known as the "IF system for C programmers" (which DOES use C-style comment blocks) so he might have been trying to keep away from that.

Anyhow, you can find a list of editors that handle Hugo's block comments correctly here: http://hugo.gerynarsabode.org/index.php ... ed_Editors

(I'm sure there are more out there)

by Tdarcos » Mon Jan 02, 2012 2:22 pm

Yeah, I agree, the game language steals so much from C that he should have just stolen /* and */ as block comments.

by Gerynar » Fri Jul 23, 2010 8:04 am

Not so sure, because this let's gedit also highlight special characters in strings (\n, \B, etc...) I'm thinking (and I could totally be wrong) that at least as far as gedit is concerned, it sees the !, looks through the definitions and says "ah, line comment"

by Bainespal » Thu Jul 22, 2010 10:54 am

Gerynar wrote:I blame the designer of the language. I mean honestly, who uses backslashes in code besides to designate a special character.
Maybe that is the problem. The backslash is also defined as the escape character, and the text editors can't manage to interpret both functions.

by Gerynar » Mon Jul 19, 2010 1:51 pm

I blame the designer of the language. I mean honestly, who uses backslashes in code besides to designate a special character.

:)

by Bainespal » Sun Jul 18, 2010 4:41 pm

We're filling in the gaps in this under-represented authoring system. It's good to know that Linux and Windows users now have a couple choices of text editors to use for work on Hugo games. Even if the editors stubbornly refuse to recognize our block comments. ;-)

YASH (Yet Another Syntax Highligher)

by Gerynar » Sat Jul 17, 2010 11:13 pm

OK, for the one or two other people who develop Hugo games in Linux, I've got a syntax highlight definition file. It's for gedit. Just copy the file to the gtksourceview-2.0 directory. (Usually located at /usr/share/gtksourceview-2.0/language-specs).

(Fixed multi-line comments)

http://gerynarsabode.org/index.php?opti ... id=3&cid=6

Top