2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
|
|
|
|
|
2013-09-12 11:02:41 -04:00
|
|
|
|
|
|
|
XPTemplate priority=lang
|
|
|
|
|
|
|
|
XPTvar $BRif ' '
|
|
|
|
XPTvar $BRel \n
|
|
|
|
XPTvar $BRloop ' '
|
|
|
|
XPTvar $BRfun ' '
|
|
|
|
|
|
|
|
XPTinclude
|
|
|
|
\ _common/personal
|
|
|
|
\ java/java
|
|
|
|
|
|
|
|
XPT cake hint=Cake\ Pattern
|
|
|
|
XSET trait|def=Some
|
|
|
|
XSET derived|def=Real
|
|
|
|
trait `trait^Component {
|
|
|
|
trait `trait^ {
|
|
|
|
`body^
|
|
|
|
}
|
|
|
|
|
|
|
|
val `trait^SV('(.)', '\l\1', '')^^: `trait^
|
|
|
|
}
|
|
|
|
|
|
|
|
trait `derived^`trait^Component extends `trait^Component {
|
|
|
|
|
|
|
|
override lazy val `trait^SV('(.)', '\l\1', '')^^ = new `trait^ {
|
|
|
|
`body2^
|
|
|
|
}
|
|
|
|
}
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|