newlisp.vim version 1.13

Started by Cyril, February 01, 2008, 10:00:12 AM

Previous topic - Next topic

Cyril

Vim syntax highlighting mode updated again. Changes in this version:



1. Symbols ending with a special character are highlighted in a different color now. Rationale: when user introduces some convention about postfixes ('foo?' for predicates, 'foo!' for destructive functions, 'foo&' for pass-like functions and so on), s/he usually intents to make them visually different. So I do them such. This affects user-defined symbols only, built-in symbols are still in the same color.



2. The tricky mechanic of error disabling, introduced in 1.10, is abandoned. Now I believe it was an useless and ugly hack. You can disable any certain highlighting you dislike by standard Vim means. An example: let us suppose that you dislike the feature of paragraph one and want the special symbols to be colored in the same way as all other symbols, in the way used by this plugin before. Then you can put the following line in your .vimrc:



  hi link newlispSymbolSpecial newlispSymbol



, and highlighting returns to its good old way. Of course, if you want just this, you can also not upgrade at all, but this hint may be useful in future versions. ;-)



The plugin is located, as usual, http://www.vim.org/scripts/script.php?script_id=2067">here and http://wagner.pp.ru/~slobin/vim/syntax/newlisp.vim">there.
With newLISP you can grow your lists from the right side!

Cyril

#1
Another trivial bug: @link keyword in documenting comments was highlighted only after a space. Fixed. Was found while writing something like this:



;; (@link http://wagner.pp.ru/~slobin/newlisp/sxml2xml.lsp[/url] source here)



Version 1.14 uploaded to its usual locations.
With newLISP you can grow your lists from the right side!

Excalibor

#2
Hey, there,



Nice work on the new syntax file for vim... While my version (which Lutz actually maintained and updated) was a quick hack over the Lisp syntax file, yours is actually beautiful to watch and really cool to use...



Thanks and laters!

Cyril

#3
Quote from: "Excalibor"my version was a quick hack over the Lisp syntax file


I am definitely not going to offend you, but choosing a Lisp syntax as a base was a wrong move from the beginning. What all the languages of Lisp family have in common? Very powerful semantic (we all like it). Absence of syntax (which has it's good and bad sides). But lexical level is totally different: CL is not like Scheme, both are not like newLISP. And syntax highlighting works mainly in lexical level, partially on syntactic (balance of parentheses), and has no deal with semantic. So I have started with a language that is lexically (but neither syntactically nor semantically) similar to newLISP. I mean old good C language. ;-)
With newLISP you can grow your lists from the right side!