Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escape character, apparently required \% to \\% #598

Closed
8i8 opened this issue Nov 5, 2023 · 0 comments
Closed

escape character, apparently required \% to \\% #598

8i8 opened this issue Nov 5, 2023 · 0 comments

Comments

@8i8
Copy link

8i8 commented Nov 5, 2023

When I open a .c file, I am receiving the following error:

"src/main.c" 51L, 907B
Error detected while processing BufRead Autocommands for "*.c"..function dist#ft#FTlpc[11]..FileType Autocommands for "c"..function <SNR>35_ClangCompleteInit[146]..<SNR>35_initClangCompletePy
thon:
line   14:
/Users/bob/.vim/bundle/clang_complete/plugin/libclang.py:253: SyntaxWarning: invalid escape sequence '\%'
  pattern = '/\%' + str(range.start.line) + 'l' + '\%' \
/Users/bob/.vim/bundle/clang_complete/plugin/libclang.py:253: SyntaxWarning: invalid escape sequence '\%'
  pattern = '/\%' + str(range.start.line) + 'l' + '\%' \
/Users/bob/.vim/bundle/clang_complete/plugin/libclang.py:255: SyntaxWarning: invalid escape sequence '\%'
  + '\%' + str(range.end.column) + 'c/'
/Users/bob/.vim/bundle/clang_complete/plugin/libclang.py:271: SyntaxWarning: invalid escape sequence '\%'
  pattern = '/\%' + str(diagnostic.location.line) + 'l\%' \
/Users/bob/.vim/bundle/clang_complete/plugin/libclang.py:271: SyntaxWarning: invalid escape sequence '\%'
  pattern = '/\%' + str(diagnostic.location.line) + 'l\%' \

I have been able to stop the errors from being raised by changing all instances of \% to \\%

@xaizek xaizek closed this as completed in 75946de Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant