[Click] 회신: vim syntax highlight of click script
JaeYong Yoo
jyyoo at netmedia.gist.ac.kr
Wed Mar 17 07:26:46 EDT 2010
Hi Jesse,
I have applied according to your instructions and when I open .click file, vim shows these error messages,
"multiop.click" 248L, 10339C
Error detected while processing /home/yjaeyong/.vim/syntax/click.vim:
line 5:
E492: Not an editor command: ^M
line 7:
E15: Invalid expression: exists("b:current_syntax")^M
line 339:
E171: Missing :endif
line 6:
E492: Not an editor command: ^M
line 7:
E15: Invalid expression: exists("b:current_syntax")^M
line 339:
E171: Missing :endif
do you have any clue?
wishes,
jaeyong
________________________________________
보낸 사람: Jesse Brown [jesse.r.brown at lmco.com]
보낸 날짜: 2010년 3월 17일 수요일 오후 7:50
받는 사람: JaeYong Yoo
참조: click at pdos.csail.mit.edu
제목: Re: [Click] vim syntax highlight of click script
JaeYong Yoo wrote:
> Hi,
>
> is there any vim plugin that highlights according to the syntax of click script?
>
> wishes,
>
> jaeyong
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
Hi jaeyong,
In general, the C syntax is pretty close. Based on that I added the
elements (current as of 1.6.0), support for the '->' and '::' operators
and the elementclass keyword.
Attached is the syntax file. To use this you would edit your .vimrc to
include the following lines:
au BufNewFile,BufRead *.click set filetype=click
au! Syntax click source ~/.vim/syntax/click.vim
And place the attached file in ~/.vim/syntax/click.vim
I understand that this is pretty crude, but it works well for me.
Jesse
More information about the click
mailing list