ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

Error in C comments #191

Open Jimmie-Cricket opened 10 months ago

Jimmie-Cricket commented 10 months ago

I get the following error when I open up a .c file.

"test.c" 7L, 729B
Error detected while processing BufRead Autocommands for "*.c"..function dist#ft#FTlpc[11]..FileType Autocommands for "*"..Syntax Autocomman
ds for "*"..function <SNR>18_SynSet[25]..script $HOME/.vim/plugged/vim-css-color/after/syntax/c.vim[1]..function css_color#init[10]..css
_color#enable[15]..modelines:
line    5:
E518: Unknown option: printf("Wrong
E518: Unknown option: printf("Wrong

Here is a snippet of a c file that kicks off the error:

void assert_failed(uint8_t *file, uint32_t line)
{
  /* USER CODE BEGIN 6 */
  /* User can add his own implementation to report the file name and line number, */
  /* ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
  /* USER CODE END 6 */
}

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" r1.6cc6573

Any idea what is going on?