Hello everybody,
I am trying to understand and create a Syntax Definition for SAMCEF code. But until now I failed, so I am asking for your help.
I would like to adapt the following Notepad++ Syntax (udl xml) to Sublime text. I am sure it is simple but I cannot figure it out…
<NotepadPlus> <UserLang name="SAMCEF" ext="dat" udlVersion="2.1"> <Settings> <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="yes" forcePureLC="0" decimalSeparator="0" /> <Prefix Keywords1="yes" Keywords2="yes" Keywords3="no" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="yes" Keywords8="no" /> </Settings> <KeywordLists> <Keywords name="Comments">00! 01 02 03 04</Keywords> <Keywords name="Numbers, prefix1"></Keywords> <Keywords name="Numbers, prefix2"></Keywords> <Keywords name="Numbers, extras1"></Keywords> <Keywords name="Numbers, extras2"></Keywords> <Keywords name="Numbers, suffix1">.</Keywords> <Keywords name="Numbers, suffix2"></Keywords> <Keywords name="Numbers, range">E</Keywords> <Keywords name="Operators1">+ - : *</Keywords> <Keywords name="Operators2"></Keywords> <Keywords name="Folders in code1, open"></Keywords> <Keywords name="Folders in code1, middle"></Keywords> <Keywords name="Folders in code1, close"></Keywords> <Keywords name="Folders in code2, open"></Keywords> <Keywords name="Folders in code2, middle"></Keywords> <Keywords name="Folders in code2, close"></Keywords> <Keywords name="Folders in comment, open">#IF</Keywords> <Keywords name="Folders in comment, middle">#ELSEIF #ELSE THEN</Keywords> <Keywords name="Folders in comment, close">#ENDIF</Keywords> <Keywords name="Keywords1">.NOE
.MAI
.UNI
.STOP
.MAT
.FRAM
.3POI
.FCT
.PURGE
.PHP
.HYP
.AEL
.SEL
.PEAU
.AXL
.CLM
.LIA
.MCC
.MCE
.DES
.MCT
.GEL
.SAI
.SUB
.CLT
.APS
.RBE
.STI
.BOLT
.MNT
.ALGO
.SAM
.OPT
.LOOP1</Keywords> <Keywords name="Keywords2">NOM
GROUP
THEN
TYPE 
CART
ORI
GRO
COM
BOITE
STRU
NOE
UNION
IDEN
MAI
TRAN
FACE
MOINS
GTAR
CREE
THIC
NEXCE
MAT
DEGRE
VOLU
TOUT
PURGE
COUPLE
BLOC
XIT
VON
CAUCHY
VAL
ABS
ORDO
MAP
ATT
IMPOSE
ARCH
STYP
NDIST
MACRO
ELEM
PART
CHA
PRES
TFX
DEP
FIX</Keywords> <Keywords name="Keywords3">OR
AND
GT
LT
NE
EQ
GE
LE
V1
V2
V3
A
I
J
K
M
YT
NT
MM
X
Y
Z
NLIM
CF
CFNF
RMAX
U
KSMO
XI
XS
YI
YS
ZI
ZS
OPT
N
NF
V
MECA
REAC
CIBLE
IPRO
RESO
LINK
PRCR
PRCE
IA16
IA4
IA19
HMIN
HMAX
DTI0
ITMA
ILNS
PAS
UN3
UN2
UN1
PEAU
METH
L1
NOP1
NOP2
NOP3
NOP4
NOP5
NOP6
MF
METHODE
IRELIEF
IMPRI
CYLIND
RAYONS
ANGLES</Keywords> <Keywords name="Keywords4">/</Keywords> <Keywords name="Keywords5">INPUT
APPEND
RETURN
CLOSE
NAME</Keywords> <Keywords name="Keywords6">ECHO
SUPPR
MEAN
FRAME
FRE1
CONT
SPR1
MAPP

</Keywords> <Keywords name="Keywords7">.DEL.*
#INQ
EXIT

</Keywords> <Keywords name="Keywords8">GRAP INIT
MODE PREC
MODE LECT
MODE ERR
ABRE
TIME
TEMP
$
EVAL
NC</Keywords> <Keywords name="Delimiters">00( 01 02) 03" 04 05" 06'' 07 08' 09[ 10 11] 12' 13 14' 15 16 17 18 19 20 21 22 23</Keywords> </KeywordLists> <Styles> <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="COMMENTS" fgColor="008000" bgColor="C0C0C0" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="LINE COMMENTS" fgColor="28641A" bgColor="C0C0C0" fontName="" fontStyle="1" nesting="65536" /> <WordsStyle name="NUMBERS" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" /> <WordsStyle name="KEYWORDS1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="5" nesting="0" /> <WordsStyle name="KEYWORDS2" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="10" nesting="0" /> <WordsStyle name="KEYWORDS3" fgColor="EA7500" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS4" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS5" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS6" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS7" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS8" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="OPERATORS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="10" nesting="0" /> <WordsStyle name="FOLDER IN CODE1" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN CODE2" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN COMMENT" fgColor="400080" bgColor="FFFFFF" fontName="" fontStyle="7" nesting="0" /> <WordsStyle name="DELIMITERS1" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="117699839" /> <WordsStyle name="DELIMITERS2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="17036543" /> <WordsStyle name="DELIMITERS3" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="117701887" /> <WordsStyle name="DELIMITERS4" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="117701887" /> <WordsStyle name="DELIMITERS5" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="4" nesting="117702655" /> <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> </Styles> </UserLang> </NotepadPlus>