Skip to content

Commit 7d0cd69

Browse files
committed
Fix #7, Allow customized postfix
1 parent 31d2d32 commit 7d0cd69

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

autoload/csscomplete.vim

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,20 @@ function! csscomplete#CompleteCSS(findstart, base)
117117
let list_style_type_values = ["decimal", "decimal-leading-zero", "arabic-indic", "armenian", "upper-armenian", "lower-armenian", "bengali", "cambodian", "khmer", "cjk-decimal", "devanagari", "georgian", "gujarati", "gurmukhi", "hebrew", "kannada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "lower-roman", "upper-roman", "tamil", "telugu", "thai", "tibetan", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cjk-heavenly-stem", "lower-greek", "hiragana", "hiragana-iroha", "katakana", "katakana-iroha", "disc", "circle", "square", "disclosure-open", "disclosure-closed"]
118118
let timing_functions = ["cubic-bezier(", "steps(", "linear", "ease", "ease-in", "ease-in-out", "ease-out", "step-start", "step-end"]
119119

120-
let postfix = ";"
120+
if exists('g:csscomplete_postfix')
121+
let postfix = g:csscomplete_postfix
122+
endif
123+
124+
if exists('l:csscomplete_postfix')
125+
let postfix = l:csscomplete_postfix
126+
endif
127+
128+
if !exists('postfix')
129+
let postfix = ";"
130+
if index(['sass', 'stylus'], &filetype) >= 0
131+
let postfix = ""
132+
endif
133+
endif
121134

122135
if prop == 'all'
123136
let values = []

0 commit comments

Comments
 (0)