The following feature request is the outcome of bug:
"\[ 1094078 \] Repeated REGEXP per line"
If I understood right than the regexp-feature for syntax-highlighting has the following
properties:
1. don't expand over more than two line
2. don't allow overlapping sequences (end sequence is ignored for the next matching
expression)
I would like to have the possibility (optional) to:
- span over more than one line and (option1)
- allow for overlapping sequences in the text (option2)
Use case: I tried to implement syntax highlighting for SAS-statistics package. With
the present feature set of Jedit I couldn't implement the underlying rules.
Here is a short description of the syntax highlighting for SAS:
Test case:
3\*4+4; \*comment1; 3\*4\*4; \*comment2; \*comment3;\*comment4;
3 \* 4 + 4 ; \*comment1; 3 \* 4 + 4 ; \*comment2;
\*
comment3
;
\*comment4; this is \* no comment;
Now I try to describe expected behaviour with my own words:
If there is only space (only space and/or newline) between the last ";"
sign and
the "\*" sign, then the "\*" sign starts a multi-line comment. The end of
the comment is always the next ";" sign.
From the comment on bug 1094078 I concluded that at the moment it is not possible
to define corresponding rules in Jedit.
Submitted | goebbe - 2007-02-06 08:52:48 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2007-02-06 20:38:05 rschwenn |
- **labels**: 102669 --> |
---|---|
2007-09-24 17:29:58 goebbe |
Logged In: YES |
2009-06-30 07:52:14 goebbe |
- **summary**: feature request: extend possibilites for regexp --> feature request: extend possibilites of regexp |
2009-06-30 07:52:14 goebbe |
Most of the cases that are described in the example above (for the SAS language) are
solved now, by using Jedit syntax highlighting and regexp.
|
2009-06-30 07:55:56 goebbe |
test-file that illustrates the limitations of regexp in syntax-highlighting (last example) sas_comment_test.sas (1.6Kio) |