blob: f4118b98e95020e67f2065db4e64fccfb024040c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package rba.tool.editor.ui.syntaxcoloring
import org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultAntlrTokenToAttributeIdMapper
class RBAModelAntlrTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper {
override protected calculateId(String tokenName, int tokenType) {
if ("\'Area\'".equals(tokenName)) {
return RBAModelHighlightingConfiguration.AREA;
}
return super.calculateId(tokenName, tokenType);
}
}
|