[java] highlights XML entity refs in doc comments (IDEA-164977)

This commit is contained in:
Roman Shevchenko
2018-01-02 15:33:22 +01:00
parent 38b03b8ff8
commit 15b238b7e2
@@ -1,17 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.ide.highlighter;
@@ -89,7 +77,7 @@ public class JavaFileHighlighter extends SyntaxHighlighterBase {
XmlTokenType.XML_START_TAG_START, XmlTokenType.XML_END_TAG_START, XmlTokenType.XML_TAG_END, XmlTokenType.XML_EMPTY_ELEMENT_END,
XmlTokenType.TAG_WHITE_SPACE, XmlTokenType.XML_TAG_NAME, XmlTokenType.XML_NAME, XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN,
XmlTokenType.XML_ATTRIBUTE_VALUE_START_DELIMITER, XmlTokenType.XML_ATTRIBUTE_VALUE_END_DELIMITER, XmlTokenType.XML_CHAR_ENTITY_REF,
XmlTokenType.XML_EQ
XmlTokenType.XML_ENTITY_REF_TOKEN, XmlTokenType.XML_EQ
};
for (IElementType idx : javaDocMarkup) {
ourMap1.put(idx, JavaHighlightingColors.DOC_COMMENT);
@@ -118,4 +106,4 @@ public class JavaFileHighlighter extends SyntaxHighlighterBase {
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return pack(ourMap1.get(tokenType), ourMap2.get(tokenType));
}
}
}