Tuesday, 13 March 2012

Re: [GeSHi-devel] error in geshi parser (or language file) ?


Gaetano Giunta wrote:
I am using the language file attached to validate the ini settings files of eZ Publish (tested on geshi 1.8.6 and 1.8.10).

It mostly works, but when I try to analyze the following file (2 lines):

[RegionalSettings] TranslationExtensions[]=monextension  
I get the following output:
span style="background-color: yellow;"> <span style="">&#91;</span></span>RegionalSettings<span style="">&#93;</span>...   IE. in the results the opening angle bracket for "span" is missing. This does not happen if there is eg. an empty line at the beginning of the file being highlighted.
Ps: it also does not happen if I comment out regexp nr. 1 in the language definition...
 Is it due to a bug in the parser itself, or is something wrong with the language definition?  Thanks Gaetano  ps: any chance to get the ezini and eztemplate language definitions included in the next release? I submitted them a long time ago...  



No comments:

Post a Comment