[Fwd: [Fwd: [gedit-list] csharp.lang file]]
- From: Paolo Maggi <paolo maggi polito it>
- To: Gedit List <gedit-list lists sourceforge net>
- Subject: [Fwd: [Fwd: [gedit-list] csharp.lang file]]
- Date: Mon Apr 28 01:56:04 2003
-----Forwarded Message-----
From: Gustavo Gir�ez <gustavo giraldez gmx net>
To: Paolo Maggi <paolo maggi polito it>
Subject: [Fwd: [gedit-list] csharp.lang file]
Date: 27 Apr 2003 23:20:17 -0300
Hi Paolo,
Some comments on the attached .lang file.
> -----Forwarded Message-----
>
> From: Richard Torkar <richard torkar htu se>
> To: gedit-list lists sourceforge net
> Subject: [gedit-list] csharp.lang file
> Date: 26 Apr 2003 12:03:02 +0200
>
> <keyword-list name = "Preprocessor Definitions" style = "Preprocessor" case-sensitive="TRUE"
> match-empty-string-at-beginning = "FALSE"
> match-empty-string-at-end = "TRUE"
> beginning-regex = "^[ \t]*#[ \t]*">
> <keyword>#elif</keyword>
> <keyword>#endif</keyword>
> <keyword>#endregion</keyword>
> <keyword>#else</keyword>
> <keyword>#error</keyword>
> <keyword>#define</keyword>
> <keyword>#if</keyword>
> <keyword>#line</keyword>
> <keyword>#region</keyword>
> <keyword>#undef</keyword>
> <keyword>#warning</keyword>
> </keyword-list>
The # at the beginning of each keyword are wrong, since they are already
matched by the beginning-regex.
> <pattern-item name = "Numeric" style = "Decimal">
> <regex><(?i0[X][\\dA-F]+|\\d+(\\.\\d*)?(?:E[+-]?[\\d]+)?F?|\\.\\d+(?:E[+-]?[\\d]+)?F?|[\\d]+[LF]?))</regex>
> </pattern-item>
This regular expression is wrong. Looks like a Perl style or
something. That's something we should state clearly somewhere in the
documentation: that regexps in .lang files are to be written in GNU
style.
Cheers,
Gustavo
--
Paolo Maggi E-mail: paolo DOT maggi AT polito DOT it
Dip. Automatica e Informatica Tel. : + 39 011 564 7078
Politecnico di Torino Fax : + 39 011 564 7099
A Bugless Program is an Abstract Theoretical Concept.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]