mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Add scala and sbt support
This commit is contained in:
29
ftplugin/scala.xpt.vim
Normal file
29
ftplugin/scala.xpt.vim
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
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^
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user