Lines 222-228
Link Here
|
222 |
// also for offset-1... |
222 |
// also for offset-1... |
223 |
// + bugfix of #52909 - the > is recognized as SyntaxElement.TAG so we need to |
223 |
// + bugfix of #52909 - the > is recognized as SyntaxElement.TAG so we need to |
224 |
// get a syntax element before, when cc is called before > in a tag e.g. <table w|> |
224 |
// get a syntax element before, when cc is called before > in a tag e.g. <table w|> |
225 |
if (elem == null || (elem.getType() == SyntaxElement.TYPE_TAG && ">".equals(elem.getText())) ) { |
225 |
if (elem == null || (elem.getType() == SyntaxElement.TYPE_TAG && ">".equals(elem.getText())) ) { // NOI18N |
226 |
elem = sup.getElementChain( offset - 1 ); |
226 |
elem = sup.getElementChain( offset - 1 ); |
227 |
} |
227 |
} |
228 |
|
228 |
|
Lines 314-321
Link Here
|
314 |
|
314 |
|
315 |
String quotationChar = null; |
315 |
String quotationChar = null; |
316 |
if(preText != null && preText.length() > 0) { |
316 |
if(preText != null && preText.length() > 0) { |
317 |
if(preText.substring(0,1).equals("'")) quotationChar = "'"; |
317 |
if(preText.substring(0,1).equals("'")) quotationChar = "'"; // NOI18N |
318 |
if(preText.substring(0,1).equals("\"")) quotationChar = "\""; |
318 |
if(preText.substring(0,1).equals("\"")) quotationChar = "\""; // NOI18N |
319 |
} |
319 |
} |
320 |
|
320 |
|
321 |
l = translateValues( offset-len, len, arg.getValueList( quotationChar == null ? preText : preText.substring(1)) , quotationChar ); |
321 |
l = translateValues( offset-len, len, arg.getValueList( quotationChar == null ? preText : preText.substring(1)) , quotationChar ); |
Lines 356-362
Link Here
|
356 |
|
356 |
|
357 |
List translateAttribs( int offset, int length, List attribs, DTD.Element tag ) { |
357 |
List translateAttribs( int offset, int length, List attribs, DTD.Element tag ) { |
358 |
List result = new ArrayList( attribs.size() ); |
358 |
List result = new ArrayList( attribs.size() ); |
359 |
String tagName = tag.getName() + "#"; |
359 |
String tagName = tag.getName() + "#"; // NOI18N |
360 |
for( Iterator i = attribs.iterator(); i.hasNext(); ) { |
360 |
for( Iterator i = attribs.iterator(); i.hasNext(); ) { |
361 |
DTD.Attribute attrib = (DTD.Attribute)i.next(); |
361 |
DTD.Attribute attrib = (DTD.Attribute)i.next(); |
362 |
String name = attrib.getName(); |
362 |
String name = attrib.getName(); |