Hello,
FYI
Using a not clean TSE 4.42.00
I wondered why the usual compilation using the TSE syncfg2.mac macro did not show the
syntax highlight colors as expected.
It showed that this is caused because there were one or more duplicates in the file.
Steps to reproduce:
1. Create and save this to a text file in your TSE synhi directory
(e.g. c:\TSE\synhi\wireshark.txt)
wordset=0-9A-Z_a-z
HiliteIncompleteQuotes=TRUE
IgnoreCaseOfKeyWords=TRUE
HiliteIf0StyleComments=TRUE
Transparent=FALSE
CursorLineFlag=TransparentCursorLine
NumberFlag=Integer|C-Hex|ASM-Hex
MultiLineDelimited1=
MultiLineDelimited2=
MultiLineDelimited3=
TillEOL1=
TillEOLStartCol1=0
TillEOL2=
TillEOLStartCol2=0
TillEOL3=
TillEOLStartCol3=0
Quote1="
Quote2='
Quote3=
QuoteEscape1 =\
QuoteEscape2 =\
QuoteEscape3 =
Directive1=#
Directive2=
Directive3=
[KeyWords1]
server
client
[KeyWords2]
PSH
ACK
FIN
RST
SYN
URG
[KeyWords3]
<
<
[KeyWords4]
ABNORMAL
UNEXPECTED
[KeyWords5]
[KeyWords6]
[KeyWords7]
[KeyWords8]
[KeyWords9]
2. The important and relevant part here are the 2 occurrences of the '<' in [Keywords3].
That is thus an example of duplication, that is the same thing appearing more than once
in that file.
3. Then stay in that file and run the macro syncfg2
4. That should compile it successfully
5. Save the result also in the same TSE synhi directory, but now with the file extension .syn
(e.g. c:\TSE\synhi\wireshark.syn
6. Quit and restart TSE
7. Now as usual associate that file extension with that syntax highlight definition
(run TSE macro syncfg and associate the extension 'wireshark' with wireshark)
8. Then load a file with extension .wireshark,
e.g.
foobar.wireshark
E.g. containing arbitrarily the words
PSH
ACK
FIN
RST
SYN
URG
ABNORMAL
UNEXPECTED
and check the syntax highlight colors. They should not show as expected.
9. Now to reproduce, remove one of the duplicate '<' in the txt file, save it, run syncfg2 again, save it as .syn, restart TSE, load foobar.wireshark.
That should now show the syntax highlight colors as expected.
10. So maybe the TSE native macro 'syncfg2' should flag those duplicate characters and not compile successfully, which it instead does until now.
with friendly greetings
Knud van Eeden