|
Post by Stefan on Feb 6, 2021 8:40:42 GMT -5
In an XYZ.AUTO file, using AUTOCAPS instead of WORD has the effect that whatever is being defined will be capitalised when the XYZ.AUTO is applied to a file of type XYZ. Works great and I love it, except...
... it doesn't work for files of type .AUTO
My AUTO.AUTO looks like this: ; SPFLite Colorize file for AUTO ; Colour 9 is same as LO to effect AUTOCAPS only without colour change COMMENT1 11 ; 0 MIXEDCASE YES DELIMS = AUTOCAPS 9 AUTOCAPS AUTOCAPS 9 COMMENT1 AUTOCAPS 9 COMMENT2 AUTOCAPS 9 COMMENT3 AUTOCAPS 9 COMMENT4 AUTOCAPS 9 COMMENT5 AUTOCAPS 9 COMMENT6 AUTOCAPS 9 COMMENT7 AUTOCAPS 9 COMMENT8 AUTOCAPS 9 COMMENT9 AUTOCAPS 9 DELIMS AUTOCAPS 9 ESCAPECHR AUTOCAPS 9 EXCLUDE AUTOCAPS 9 INCLUDE AUTOCAPS 9 MIXEDCASE AUTOCAPS 9 NUMERIC AUTOCAPS 9 QUOTED AUTOCAPS 9 WORD ; Make colour numbers appear in the right colour
WORD 1 1 WORD 2 2 WORD 3 3 WORD 4 4 WORD 5 5 WORD 6 6 WORD 7 7 WORD 8 8 WORD 9 9 WORD 10 10 WORD 11 11 WORD 12 12 WORD 13 13 WORD 14 14
So when editing a file of type AUTO, entries like Comment1, Delims, etc should appear as COMMENT1, DELIMS, etc, but they don't and I can't figure out why. The file PROFILE for AUTO is the same as that for other file types where AUTOCAPS works as expected. (e.g. AUTOCAPS ON, CAPS OFF, CASE T, FOLD OFF)
All suggestions welcome.
|
|
|
Post by Stefan on Feb 6, 2021 11:07:31 GMT -5
Agreed - it's no biggy and the AUTO file syntax isn't exactly taxing to begin with, so the 'readability enhancement' usually resulting for auto-highlighting is minimal. I just happened to trip over it when adding entries to an existing AUTO file and the capitalisation of the keywords didn't change.
The only reason I wrote an AUTO.AUTO was to display the colour numbers in their correct colour in other AUTO files. Makes coding one up much simpler.
|
|
|
Post by George on Feb 6, 2021 12:16:38 GMT -5
Stefan: Tried this out. You have MixedCase YES. Check the ones that failed, my bet is that the ones that failed were coded as something like Comment1 and you have autocaps comment1 specified.
George
|
|
|
Post by Stefan on Feb 6, 2021 12:41:09 GMT -5
Sorry George - i'm being dense, but check what, where exactly? If I open a xyz.AUTO file and type a new line, Word 3 Hello I'd expect my AUTO.AUTO file (as listed above) to change it to WORD 3 Hello
|
|
|
Post by George on Feb 6, 2021 13:15:36 GMT -5
Stefan:
You have MIXEDCASE=YES
Then your definition is AUTOCAPS COMMENT1
Then your question asks why Comment1 and Delims don't show up as COMMENT1 and DELIMS
Comment1 does NOT equal COMMENT1 because you have MIXEDCASE YES. Delims does NOT equal DELIMS because you have MIXEDCASE YES.
George
|
|