Lines Matching refs:context
170 " a:base is very short - we need context
171 let context = b:compl_context
177 let context = b:compl_context
179 return csscomplete#CompleteCSS(0, context)
185 let context = b:compl_context
191 let context = matchstr(b:compl_context, '.\zs.*')
230 if context =~ '>'
231 " Generally if context contains > it means we are outside of tag and
233 if context =~ 'style[^>]\{-}>[^<]\{-}$'
234 return csscomplete#CompleteCSS(0, context)
235 elseif context =~ 'script[^>]\{-}>[^<]\{-}$'
237 return javascriptcomplete#CompleteJS(0, context)
243 " If context contains > it means we are already outside of tag and we
245 " If context contains white space it is attribute.
248 if context =~ '^\s*$'
252 let tag = split(context)[0]
263 let attr = matchstr(context, '.*\s\zs.*')
266 if context =~ '\s'
268 if context =~? "\\(on[a-z]*\\|id\\|style\\|class\\)\\s*=\\s*[\"']"
270 if context =~? "\\(id\\|class\\)\\s*=\\s*[\"'][a-zA-Z0-9_ -]*$"
271 if context =~? "class\\s*=\\s*[\"'][a-zA-Z0-9_ -]*$"
273 elseif context =~? "id\\s*=\\s*[\"'][a-zA-Z0-9_ -]*$"
422 let classbase = matchstr(context, ".*[\"']")
437 elseif context =~? "style\\s*=\\s*[\"'][^\"']*$"
438 return csscomplete#CompleteCSS(0, context)
443 if context =~? 'on[a-z]*\s*=\s*\(''[^'']*\|"[^"]*\)$'
473 let b:compl_context = context
481 let stripbase = matchstr(context, ".*\\(on[a-zA-Z]*\\|style\\|class\\)\\s*=\\s*[\"']\\zs.*")
482 " Now we have context stripped from all chars up to style/class.
528 let attrbase = matchstr(context, ".*[\"']")
553 " Shorten context to not include last word
554 let sbase = matchstr(context, '.*\ze\s.*')
618 if context =~ '^\/'
619 if context =~ '^\/.'
658 let context = tolower(context)
678 if m =~ '^'.context
680 elseif m =~ context