mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a quick fix for CME during embedded token registration for XML/HTML
This commit is contained in:
@@ -79,7 +79,7 @@ public class HtmlFileHighlighter extends SyntaxHighlighterBase {
|
||||
return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, ourMap.get(tokenType).toArray(EMPTY));
|
||||
}
|
||||
|
||||
public static void registerEmbeddedTokenAttributes(Map<IElementType, TextAttributesKey> _keys1,
|
||||
public static synchronized void registerEmbeddedTokenAttributes(Map<IElementType, TextAttributesKey> _keys1,
|
||||
Map<IElementType, TextAttributesKey> _keys2) {
|
||||
HashSet<IElementType> existingKeys = new HashSet<>(ourMap.keySet());
|
||||
XmlFileHighlighter.addMissing(_keys1, existingKeys, ourMap);
|
||||
|
||||
@@ -110,7 +110,7 @@ public class XmlFileHighlighter extends SyntaxHighlighterBase {
|
||||
return ourMap.get(tokenType).toArray(EMPTY);
|
||||
}
|
||||
|
||||
public static void registerEmbeddedTokenAttributes(Map<IElementType, TextAttributesKey> _keys1,
|
||||
public static synchronized void registerEmbeddedTokenAttributes(Map<IElementType, TextAttributesKey> _keys1,
|
||||
Map<IElementType, TextAttributesKey> _keys2) {
|
||||
HashSet<IElementType> existingKeys = new HashSet<>(ourMap.keySet());
|
||||
addMissing(_keys1, existingKeys, ourMap);
|
||||
|
||||
Reference in New Issue
Block a user