src/Tools/jEdit/patches/brackets_extended_styles
author wenzelm
Mon, 15 Feb 2016 14:55:44 +0100
changeset 62337 d3996d5873dd
parent 61746 3df1b6a5837c
permissions -rw-r--r--
proper syntax;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
61511
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
     1
diff -ru 5.3.0/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java 5.3.0/jEdit-patched/org/gjt/sp/jedit/gui/StyleEditor.java
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
     2
--- 5.3.0/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java	2015-10-20 19:56:05.000000000 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
     3
+++ 5.3.0/jEdit-patched/org/gjt/sp/jedit/gui/StyleEditor.java	2015-10-23 20:02:22.161225360 +0200
50306
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
     4
@@ -79,7 +79,7 @@
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
     5
 			start = next;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
     6
 			token = token.next;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
     7
 		}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
     8
-		if (token.id == Token.END || token.id == Token.NULL)
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
     9
+		if (token.id == Token.END || (token.id % Token.ID_COUNT) == Token.NULL)
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    10
 		{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    11
 			JOptionPane.showMessageDialog(textArea.getView(),
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    12
 				jEdit.getProperty("syntax-style-no-token.message"),
61511
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    13
diff -ru 5.3.0/jEdit/org/gjt/sp/jedit/syntax/Chunk.java 5.3.0/jEdit-patched/org/gjt/sp/jedit/syntax/Chunk.java
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    14
--- 5.3.0/jEdit/org/gjt/sp/jedit/syntax/Chunk.java	2015-10-20 19:56:07.000000000 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    15
+++ 5.3.0/jEdit-patched/org/gjt/sp/jedit/syntax/Chunk.java	2015-10-23 20:02:22.161225360 +0200
59571
1081f91c0662 updated to jedit-5.2.0;
wenzelm
parents: 53898
diff changeset
    16
@@ -259,9 +259,9 @@
50306
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    17
 	//{{{ Package private members
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    18
 
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    19
 	//{{{ Instance variables
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    20
-	SyntaxStyle style;
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    21
+	public SyntaxStyle style;
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    22
 	// set up after init()
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    23
-	float width;
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    24
+	public float width;
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    25
 	//}}}
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    26
 
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    27
 	//{{{ Chunk constructor
59571
1081f91c0662 updated to jedit-5.2.0;
wenzelm
parents: 53898
diff changeset
    28
@@ -509,7 +509,7 @@
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    29
 	// this is either style.getBackgroundColor() or
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    30
 	// styles[defaultID].getBackgroundColor()
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    31
 	private Color background;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    32
-	private String str;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    33
+	public String str;
50306
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    34
 	private GlyphVector[] glyphs;
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    35
 	//}}}
b655d2d0406d updated to jedit-5.0.0;
wenzelm
parents: 50305
diff changeset
    36
 
61511
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    37
diff -ru 5.3.0/jEdit/org/gjt/sp/jedit/syntax/Token.java 5.3.0/jEdit-patched/org/gjt/sp/jedit/syntax/Token.java
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    38
--- 5.3.0/jEdit/org/gjt/sp/jedit/syntax/Token.java	2015-10-20 19:56:07.000000000 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    39
+++ 5.3.0/jEdit-patched/org/gjt/sp/jedit/syntax/Token.java	2015-10-23 20:02:22.161225360 +0200
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    40
@@ -57,7 +57,7 @@
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    41
 	 */
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    42
 	public static String tokenToString(byte token)
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    43
 	{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    44
-		return (token == Token.END) ? "END" : TOKEN_TYPES[token];
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    45
+		return (token == Token.END) ? "END" : TOKEN_TYPES[token % ID_COUNT];
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    46
 	} //}}}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    47
 
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
    48
 	//{{{ Token types
61511
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    49
diff -ru 5.3.0/jEdit/org/gjt/sp/jedit/textarea/TextArea.java 5.3.0/jEdit-patched/org/gjt/sp/jedit/textarea/TextArea.java
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    50
--- 5.3.0/jEdit/org/gjt/sp/jedit/textarea/TextArea.java	2015-10-20 19:56:03.000000000 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    51
+++ 5.3.0/jEdit-patched/org/gjt/sp/jedit/textarea/TextArea.java	2015-10-23 20:02:22.161225360 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    52
@@ -910,6 +910,11 @@
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    53
 		return chunkCache.getLineInfo(screenLine).physicalLine;
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    54
 	} //}}}
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    55
 
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    56
+        public Chunk getChunksOfScreenLine(int screenLine)
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    57
+        {
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    58
+                return chunkCache.getLineInfo(screenLine).chunks;
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    59
+        }
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    60
+
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    61
 	//{{{ getScreenLineOfOffset() method
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    62
 	/**
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    63
 	 * Returns the screen (wrapped) line containing the specified offset.
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    64
@@ -1618,8 +1623,8 @@
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    65
 		}
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    66
 
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    67
 		// Scan backwards, trying to find a bracket
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    68
-		String openBrackets = "([{";
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    69
-		String closeBrackets = ")]}";
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    70
+		String openBrackets = "([{«‹⟨⌈⌊⦇⟦⦃";
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    71
+		String closeBrackets = ")]}»›⟩⌉⌋⦈⟧⦄'";
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    72
 		int count = 1;
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    73
 		char openBracket = '\0';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    74
 		char closeBracket = '\0';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    75
diff -ru 5.3.0/jEdit/org/gjt/sp/jedit/TextUtilities.java 5.3.0/jEdit-patched/org/gjt/sp/jedit/TextUtilities.java
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    76
--- 5.3.0/jEdit/org/gjt/sp/jedit/TextUtilities.java	2015-10-20 19:56:00.000000000 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    77
+++ 5.3.0/jEdit-patched/org/gjt/sp/jedit/TextUtilities.java	2015-10-23 19:46:33.728522904 +0200
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    78
@@ -97,6 +97,22 @@
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    79
 		case '}': if (direction != null) direction[0] = false; return '{';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    80
 		case '<': if (direction != null) direction[0] = true;  return '>';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    81
 		case '>': if (direction != null) direction[0] = false; return '<';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    82
+		case '«': if (direction != null) direction[0] = true;  return '»';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    83
+		case '»': if (direction != null) direction[0] = false; return '«';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    84
+		case '‹': if (direction != null) direction[0] = true;  return '›';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    85
+		case '›': if (direction != null) direction[0] = false; return '‹';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    86
+		case '⟨': if (direction != null) direction[0] = true;  return '⟩';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    87
+		case '⟩': if (direction != null) direction[0] = false; return '⟨';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    88
+		case '⌈': if (direction != null) direction[0] = true;  return '⌉';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    89
+		case '⌉': if (direction != null) direction[0] = false; return '⌈';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    90
+		case '⌊': if (direction != null) direction[0] = true;  return '⌋';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    91
+		case '⌋': if (direction != null) direction[0] = false; return '⌊';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    92
+		case '⦇': if (direction != null) direction[0] = true;  return '⦈';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    93
+		case '⦈': if (direction != null) direction[0] = false; return '⦇';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    94
+		case '⟦': if (direction != null) direction[0] = true;  return '⟧';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    95
+		case '⟧': if (direction != null) direction[0] = false; return '⟦';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    96
+		case '⦃': if (direction != null) direction[0] = true;  return '⦄';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    97
+		case '⦄': if (direction != null) direction[0] = false; return '⦃';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    98
 		default:  return '\0';
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
    99
 		}
d40f906bb13f updated to jedit-5.3.0 and SideKick 1.8;
wenzelm
parents: 59571
diff changeset
   100
 	} //}}}
61746
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   101
diff -ru 5.3.0/jEdit-orig/org/gjt/sp/util/SyntaxUtilities.java 5.3.0/jEdit-patched/org/gjt/sp/util/SyntaxUtilities.java
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   102
--- 5.3.0/jEdit-orig/org/gjt/sp/util/SyntaxUtilities.java	2015-10-20 19:56:08.000000000 +0200
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   103
+++ 5.3.0/jEdit-patched/org/gjt/sp/util/SyntaxUtilities.java	2015-11-24 22:14:56.935661997 +0100
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   104
@@ -194,7 +194,24 @@
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   105
 	{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   106
 		return loadStyles(family,size,true);
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   107
 	}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   108
-	
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   109
+
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   110
+	/**
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   111
+	 * Extended styles derived from the user-specified style array.
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   112
+	 */
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   113
+
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   114
+	public static class StyleExtender
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   115
+	{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   116
+		public SyntaxStyle[] extendStyles(SyntaxStyle[] styles)
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   117
+		{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   118
+			return styles;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   119
+		}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   120
+	}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   121
+	volatile private static StyleExtender _styleExtender = new StyleExtender();
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   122
+	public static void setStyleExtender(StyleExtender ext)
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   123
+	{
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   124
+		_styleExtender = ext;
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   125
+	}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   126
+
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   127
 	/**
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   128
 	 * Loads the syntax styles from the properties, giving them the specified
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   129
 	 * base font family and size.
61746
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   130
@@ -224,9 +241,11 @@
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   131
 				Log.log(Log.ERROR,StandardUtilities.class,e);
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   132
 			}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   133
 		}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   134
-
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   135
-		return styles;
61746
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   136
+		styles[0] =
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   137
+			new SyntaxStyle(org.gjt.sp.jedit.jEdit.getColorProperty("view.fgColor", Color.BLACK),
3df1b6a5837c paint gutter text on base line of main text area, to accomodate extra line spacing without special tricks (see also jEdit bug #3717 and its fix in SVN 23977, which does not quite work: odd jumping positions on vertical cursor movement);
wenzelm
parents: 61511
diff changeset
   138
+				null, new Font(family, 0, size));
48786
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   139
+		return _styleExtender.extendStyles(styles);
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   140
 	} //}}}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   141
-	
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   142
+
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   143
 	private SyntaxUtilities(){}
2b08d10a2f75 updated to jedit-4.5.2 (still unchanged);
wenzelm
parents:
diff changeset
   144
 }