Correctly reset embedded/template expression fg color

Fixes #48
This commit is contained in:
Daniel Imms
2018-06-01 09:24:44 -07:00
parent fff5f57f68
commit f7702b6b6e

View File

@@ -97,7 +97,7 @@ export const tokenRules: IRuleGenerator[] = [
{ color: s => s.syntax.function, generate: getSimpleColorGenerator('Function definition', 'meta.function entity.name.function') },
// punctuation.definition.template-expression: `${}`
{ color: s => s.syntax.keyword, generate: getSimpleColorGenerator('Template expression', 'template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end') },
{ color: s => s.base.foreground, generate: getSimpleColorGenerator('Brackets (needed for template expressions)', 'meta.brace.square, meta.brace.round, punctuation.definition.block') },
{ color: s => s.base.foreground, generate: getSimpleColorGenerator('Reset embedded/template expression colors', 'meta.embedded, source.groovy.embedded, meta.template.expression') },
{ color: s => s.syntax.identifier, generate: getSimpleColorGenerator('YAML key', 'entity.name.tag.yaml') },
// modifier: This includes things like access modifiers, static, readonly, etc.
{ color: s => s.syntax.modifier, generate: getSimpleColorGenerator('Modifier', 'modifier') },