[Click] 회신: vim syntax highlight of click script

Jesse Brown jesse.r.brown at lmco.com
Wed Mar 17 07:50:50 EDT 2010


Hi jaeyong:

The ^M characters in your file are causing problems. It seems as though
you edited the file in 'DOS' mode. You can either create the file
directly on a linux machine or run dos2unix on the file to remove the ^M
characters.

Jesse

JaeYong Yoo wrote:
> 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
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>   




More information about the click mailing list