Files
vim-polyglot/ftplugin/scala.xpt.vim
Adam Stankiewicz 2838800832 Fix conditions, #608
2020-10-25 21:08:27 +01:00

34 lines
523 B
VimL

if has_key(g:polyglot_is_disabled, 'scala')
finish
endif
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^
}
}