ChrisYip/Better-CSS-Syntax-for-Vim — Issue #6: @import
Author: MarSOnEarth
Created: 2011-11-27 09:46:38+00:00
State: open

When @import is followed by _anything else_ all that _anything else_ until the first `{' is taken as part of the rule. I'm not big on Vim scripting, but here's a fix:

17c17
< syn region cssAtkeyword start=/@\(media\|import\)/ end=/\ze{/ contains=cssAtType, cssAtkey, cssValFn, cssValBlock
---
> syn region cssAtkeyword start=/@\(media\|import\)/ end=/\ze[{;]/ contains=cssAtType, cssAtkey, cssValFn, cssValBlock
239a240
>