Recognize comments in Janet files#49
Conversation
|
I guess that it's inefficient to define if &ft == 'janet' | let s:comment_char = '#' | else | let s:comment_char = ';' | endI think at this point, |
|
Thanks for the fix, but I think it does not really conform to the other parts of the filetype and comment handling of paredit. See for example You say that adding a script-local variable on top of the file does not work, because the filetype is defined after the script is loaded. How about doing the same as for the other variables mentioned above? Instead of defining the comment character in a script-local variable, just define the filetype for the For example if we define |
Sure, this makes totally sense! |
Fix issue #47 partly.
Janet uses
#for comments (Lisp uses;).