a quick fix for CME during embedded token registration for XML/HTML

This commit is contained in:
peter
2018-12-07 17:29:36 +01:00
parent 45bde88c5a
commit d7907f8845
2 changed files with 2 additions and 2 deletions
@@ -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);