File: props.xml

package info (click to toggle)
jedit 5.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 14,720 kB
  • sloc: java: 103,377; xml: 96,521; makefile: 43; sh: 42; cpp: 6; python: 6
file content (57 lines) | stat: -rw-r--r-- 2,159 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<MODE>
	<PROPS>
		<PROPERTY NAME="contextInsensitive" VALUE="FALSE" />
	</PROPS>
	<RULES>
        <!-- 
        Comments: indicated by either ASCII # or ! as the first non-whitespace
        character on a line. Comments extend to the end of the line. Comments
        placed after a key/value are considered part of the value, not as a
        comment.
        -->
        <EOL_SPAN_REGEXP TYPE="COMMENT1" AT_LINE_START="TRUE">\s*[#!]</EOL_SPAN_REGEXP>
        
        <!-- 
        A "natural" line, that is, a blank line. This isn't necessary, it's here
        just to show it was considered and handled.
        -->
        <EOL_SPAN_REGEXP TYPE="NULL">\s*$</EOL_SPAN_REGEXP>
	
	    <!--
	    Key: The key contains all of the characters in the line starting with the 
	    first non-white space character and up to, but not including, the first 
	    unescaped '=', ':', or white space character other than a line terminator. 
	    All of these key termination characters may be included in the key by 
	    escaping them with a preceding backslash character.
	    -->
	    <SPAN_REGEXP TYPE="KEYWORD1" NO_LINE_BREAK="TRUE" NO_WORD_BREAK="TRUE" AT_LINE_START="TRUE" ESCAPE="\">
	        <BEGIN>\s*([\u0022-\uFFFF&amp;&amp;[^:=]]|[\\][:=&#09;])+?</BEGIN>
	        <END REGEXP="TRUE">(?=(([:=])|(\s+)))</END>
	    </SPAN_REGEXP>
	
	    <!-- 
	    Visible key termination characters.
	    -->
	    <SEQ_REGEXP	TYPE="OPERATOR">((\s*[:=]\s*)|(\s+))</SEQ_REGEXP>
	    
	    <!-- 
	    Not a comment, not a key, not a key terminator, must be a value.
	    Value contains all characters until the end of the line. The line may
	    be continued to the next line by a trailing \.
	    
	    The seq_regexp handles the odd case where the value is only 1 character
	    long. The tokenizer consumes that character, which means the ending
	    regex for the span_regexp doesn't work.
	    -->
	    <SEQ_REGEXP	TYPE="LITERAL1">[^\\]{1}$</SEQ_REGEXP>
        <SPAN_REGEXP TYPE="LITERAL1">
            <BEGIN>.</BEGIN>
            <END REGEXP="TRUE">[^\\]$</END>
        </SPAN_REGEXP>
    </RULES>
	
</MODE>