Hugo xverb grammar bug

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: Hugo xverb grammar bug

Hugo xverb grammar bug

by Roody_Yogurt » Mon Dec 31, 2012 8:22 pm

Yesterday, I tracked down a bug that had resulted in some unexpected behavior over the years (but not so unexpected that I thought there was necessarily anything wrong). I finally discovered that in grammar definitions like the following:

Code: Select all

xverb "record"
*                 DoRecordOnOff
* "on"\"off"       DoRecordOnOff
only the first line was correctly being understood as xverbs.

Breaking it up into two definitions does fix the problem, so the latest version of roodylib now pre-declares all of the troublesome grammar definitions.

I thought this was fairly important news so it gets its own thread. As always, you can get the latest release (v 2.3) at:
http://roody.gerynarsabode.org/notdead/ ... _suite.zip

Top