Vlisp syntax file. Michael Puckett, are you here?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
tcebob
Posts: 80
Joined: Fri Mar 28, 2003 1:20 am

Vlisp syntax file. Michael Puckett, are you here?

Post by tcebob »

Michael's exhaustive Vlisp syntax file is terriffic. Just recently, though, the syntax for words with hyphens has failed. So such expressions as (vlax-ename->vla-object obj) remain uncolored. Perhaps it is confusing the hyphen for a minus? Or a hyphen is construed to be a word separator?

I have added some of my favorites to the file. They work fine and I don't see how they might pollute the definition of a word.

tcebob
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Did you take a look at "Other characters in words"? See TP's help file. HTH
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
tcebob
Posts: 80
Joined: Fri Mar 28, 2003 1:20 am

Post by tcebob »

Sure. It worked. I wrongly assumed that all syntax definitions were in the syntax file. In my defence, the other characters in words box was populated by an underline, which, all by itself, in Windows' tiny default font, looked like a hyphen. Many thanks.

tcebob
cadlabs
Posts: 1
Joined: Sun Jun 19, 2005 5:20 am
Contact:

Post by cadlabs »

:?:

(Have to say it's weird to see my name in a thread title).

Anyway ...

Said functions (with hyphens etc.) highlight ok in my install using my vlisp.syn. This is the critical bit me thinks ...

...
KeyWordChars = -A-Za-z0-9*:_
...

The hyphen is spec'd first, so it's not treated as a range delimiter.

Just checked: vlax-ename->vla-object is indeed part of the def and indeed, highlights fine on my system.

:)

Slight aside, I sent my AutoCAD Visual LISP syntax file to Helios awhile ago (updated for AutoCAD 2006), but it never showed up here.

So if you'd like it here it is:

http://www.cadlabs.com/files/vlisp.zip

I'll only leave the file there for awhile.

Should you happen upon this thread in the future and the link's dead and you want the syntax file send a note to michael @ my web site as noted above.

Cheers.

(Michael Puckett)
User avatar
tcebob
Posts: 80
Joined: Fri Mar 28, 2003 1:20 am

Post by tcebob »

Stay wit' me, kid, I'll make a contendah of you. Actually, s_reynisson's suggestion worked. Even though I don't (yet) have a copy of 2006 I will download your latest.

tcebob
Post Reply