Commit f5a67a2f authored by Christoph Döbber's avatar Christoph Döbber
Browse files

fixed underscore highlighting bug

refs 923
parent c9a8d301
......@@ -64,7 +64,7 @@ import org.fortiss.tooling.base.ui.fieldassist.FieldAssistImageRegistry;
* @author doebber
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4B9D6DF1E19BD1C87DCA808C3E6F6D4A
* @ConQAT.Rating YELLOW Hash: DB551994CC16796F16474B3A102399EC
*/
public class CodeEditorConfiguration extends SourceViewerConfiguration {
......@@ -215,7 +215,7 @@ public class CodeEditorConfiguration extends SourceViewerConfiguration {
/** {@inheritDoc} */
@Override
public boolean isWordPart(char c) {
return Character.isLetterOrDigit(c);
return Character.isLetterOrDigit(c) || c == '_';
}
};
WordRule keywordsRule = new WordRule(detector);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment