blob: 4656d0a0e9d3c1a3241f28bfc81239c27675c793 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.syntaxcoloring
import org.eclipse.xtext.ide.editor.syntaxcoloring.DefaultAntlrTokenToAttributeIdMapper
import org.eclipse.xtext.ide.editor.syntaxcoloring.HighlightingStyles
class CftLanguageTokenToAttributeIdMapper extends DefaultAntlrTokenToAttributeIdMapper {
override protected calculateId(String tokenName, int tokenType) {
switch (tokenName) {
case "RULE_T_DOUBLE":
HighlightingStyles.NUMBER_ID
default:
super.calculateId(tokenName, tokenType)
}
}
}
|