Hi all.
I have seen that the syntax for renderman shading language doesn't support
comments ala c++, that is said using // .
In the sl.vim for the syntax that comes with vim seems that there is a
variable that will enable, I think this is the code used in sl.vim to define
the comments:

if exists("sl_comment_strings")
  " A comment can contain slString, slCharacter and slNumber.
  " But a "*/" inside a slString in a slComment DOES end the comment!  So we
  " need to use a special type of slString: slCommentString, which also ends on
  " "*/", and sees a "*" at the start of the line as comment again.
  " Unfortunately this doesn't very well work for // type of comments :-(
  syntax match slCommentSkip    contained "^\s*\*\($\|\s\+\)"
  syntax region slCommentString contained start=+"+ skip=+\\\\\|\\"+
end=+"+ end=+\*/+me=s-1 contains=slSpecial,slCommentSkip
  syntax region slComment2String        contained start=+"+ skip=+\\\\\|\\"+
end=+"+ end="$" contains=slSpecial
  syntax region slComment       start="/\*" end="\*/"
contains=slTodo,slCommentString,slCharacter,slNumber
else
  syn region slComment          start="/\*" end="\*/" contains=slTodo
endif
syntax match slCommentError     "\*/"

syn keyword slOperator  sizeof
syn keyword slType              float point color string vector normal matrix 
void
syn keyword slStorageClass      varying uniform extern
syn keyword slStorageClass      light surface volume displacement
transformation imager
syn keyword slVariable  Cs Os P dPdu dPdv N Ng u v du dv s t
syn keyword slVariable L Cl Ol E I ncomps time Ci Oi
syn keyword slVariable Ps alpha
syn keyword slVariable dtime dPdtime

syn sync ccomment slComment minlines=10


I have use:
let sl_comment_strings = 1
To try to enable it, but not working.
Somebody with a similar issue???
Thanks



-- 
Un saludo
Best Regards
Pablo Giménez

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to