derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

highlight package and import statements as Include #78

Closed euclio closed 9 years ago

euclio commented 9 years ago

This pull request adds another highlight group to the file to highlight imports and package statements as Include, rather than PreProc. This is consistent with other languages such as Java and Python.

ches commented 9 years ago

:+1: in spirit of the Include link—not sure about the name though, a package declaration is not really "external". Also was thinking elsewhere that it might be useful to give package a dedicated group name, because it's pretty special in that it can't be inside class/object/trait defs, while imports can be just about anywhere in Scala. Applies to package object and the block forms of both too, FWIW.