jEdit Community - Resources for users of the jEdit Text Editor
Highlighting problem
Submitted by Anonymous on Wednesday, 29 December, 2004 - 16:02
Hello,

I created a edit-scheme which should recognize everything
between a * and a ; as a comment if there is only whitespace between
the preceeding ; (in the same line) and the beginning * .

Example:

i=3*j; *comment1; *comment2;

Here I want the signs till the first ; not to be considered as comment.
The two following parts between * and ; should be considered as comments.

I defined RULES with the SPAN_REGEXP command, but highlighting works
only for the first comment in the line. Somehow the ending ; of the first
comment is not considered as the begin of a SPAN_REGEXP.
Now I introduce a second ; in my example like follows:

i=3*j; *comment1;; *comment2;

Here also the second comment is recognised by the the SPAN_REGEXP:
[;][[:space:]]+[*]

Does anybody know a solution to this problem?
Thanks a lot in advance
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293