home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!decwrl!borland.com!chard
- From: chard@borland.com (Richard Nelson)
- Subject: Re: Syntax highlighting misses
- Message-ID: <1993Jan13.000353.26068@borland.com>
- Originator: chard@genghis.borland.com
- Sender: news@borland.com (News Admin)
- Organization: Borland International
- References: <29506@oasys.dt.navy.mil>
- Date: Wed, 13 Jan 1993 00:03:53 GMT
- Lines: 21
-
- >The syntax highlighting available in the BP7 editor is fine
- >as far as it goes. But why are the tokens REAL, INTEGER, WORD, CHAR,
- >DOUBLE, etc. NOT highlighted as reserved words (or anything else)
- >when STRING makes it?
-
- We just discussed this in another thread, but hey...repetition for
- emphasis....
-
- The word "string" has two possible meanings in Turbo/Borland Pascal.
- It can be used as a standard type, and also as a reserved word.
- Because the syntax highlighter can't determine which use it's looking
- at, it always highlights string, because it is reserved; i.e., you
- can't redefine it.
-
- The other types you mention are not reserved. You can define a
- variable called Real, for example.
- --
- =========================================================================
- Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
- Had this been Borland's opinion, I would have written it in a manual.
- "...there's no hurry, I'm just sittin' here doing time." - John Lennon
-