Permalink
Browse files

${} can cause issues, try with $``.

  • Loading branch information...
Rip-Rip committed Mar 9, 2013
1 parent 425eecc commit 361aa8a085c957c0c8307c99a4c3948de2b1db7b
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugin/snippets/clang_complete.py
@@ -5,20 +5,20 @@ def snippetsInit():
vim.command("noremap <silent> <buffer> <tab> :python updateSnips()<CR>")
vim.command("snoremap <silent> <buffer> <tab> <ESC>:python updateSnips()<CR>")
if int(vim.eval("g:clang_conceal_snippets")) == 1:
vim.command("syntax match placeHolder /\${.*}/ contains=placeHolderMark")
vim.command("syntax match placeHolderMark contained /\${/ conceal")
vim.command("syntax match placeHolderMark contained /}/ conceal")
vim.command("syntax match placeHolder /\$`[^`]*`/ contains=placeHolderMark")
vim.command("syntax match placeHolderMark contained /\$`/ conceal")
vim.command("syntax match placeHolderMark contained /`/ conceal")
# The two following function are performance sensitive, do _nothing_
# more that the strict necessary.
def snippetsFormatPlaceHolder(word):
return "${%s}" % word
return "$`%s`" % word
def snippetsAddSnippet(fullname, word):
return word
r = re.compile('\${[^}]*}')
r = re.compile('\$`[^`]*`')
def snippetsTrigger():
if r.search(vim.current.line) is None:

0 comments on commit 361aa8a

Please sign in to comment.