diff --git a/ChangeLog b/ChangeLog index ebc82d2ae..397b06f77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-06-24 Pavel Roskin + + * syntax/dos.syntax: New file - highlighting for DOS batch + files. From Petr Kozelka + * syntax/Syntax: Add dos.syntax. + * syntax/Makefile.am: Likewise. + 2002-06-04 Max Schedriviy * syntax/php.syntax: New version. @@ -190,7 +197,7 @@ 2002-01-11 Pavel Roskin - * syntax/xml.syntax: New file - hightlighting for XML. + * syntax/xml.syntax: New file - highlighting for XML. From Petr Kozelka * syntax/Syntax: Add xml.syntax. * syntax/Makefile.am: Likewise. diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 1efef3f4d..6825aba1b 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -7,6 +7,7 @@ syntax_DATA = \ c.syntax \ changelog.syntax \ diff.syntax \ + dos.syntax \ fortran.syntax \ html.syntax \ java.syntax \ diff --git a/syntax/Syntax b/syntax/Syntax index 173809de7..a6f26df53 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -96,6 +96,9 @@ include changelog.syntax file .\*[Mm]akefile[\\\.a-z]\*$ Makefile include makefile.syntax +file ..\*\\.(bat|cmd) $ DOS\sBatch +include dos.syntax + file ..\*\\.(po|pot|pox)$ PO\sFile include po.syntax diff --git a/syntax/dos.syntax b/syntax/dos.syntax new file mode 100644 index 000000000..ae8b3fe00 --- /dev/null +++ b/syntax/dos.syntax @@ -0,0 +1,70 @@ +# DOS & Windows highlighting +# 2002 (C) Petr Kozelka, + +context default + keyword whole call yellow/24 + keyword whole CALL yellow/24 + keyword whole copy yellow/24 + keyword whole COPY yellow/24 + keyword whole del yellow/24 + keyword whole DEL yellow/24 + keyword whole dir yellow/24 + keyword whole DIR yellow/24 + keyword whole echo yellow/24 + keyword whole ECHO yellow/24 + keyword whole else yellow/24 + keyword whole ELSE yellow/24 + keyword whole endlocal yellow/24 + keyword whole ENDLOCAL yellow/24 + keyword whole exist yellow/24 + keyword whole EXIST yellow/24 + keyword whole goto yellow/24 + keyword whole GOTO yellow/24 + keyword whole if yellow/24 + keyword whole IF yellow/24 + keyword whole not yellow/24 + keyword whole NOT yellow/24 + keyword whole off yellow/24 + keyword whole OFF yellow/24 + keyword whole on yellow/24 + keyword whole ON yellow/24 + keyword whole pause yellow/24 + keyword whole PAUSE yellow/24 + keyword wholeleft rem\s*\n brown/22 + keyword wholeleft REM\s*\n brown/22 + keyword whole set yellow/24 + keyword whole SET yellow/24 + keyword whole setlocal yellow/24 + keyword whole SETLOCAL yellow/24 + keyword whole then yellow/24 + keyword whole THEN yellow/24 + keyword whole type yellow/24 + keyword whole TYPE yellow/24 + + keyword \\ lightgray/12 + keyword whole \%\* brightmagenta/13 + keyword whole \%\$ brightmagenta/13 + keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789\]+\% brightmagenta/13 + keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789@~\]+ brightmagenta/13 + keyword >> white/12 + keyword > white/12 + keyword < white/12 + keyword | white/12 + +context ' ' brightcyan/22 + spellcheck + +context " " brightcyan/22 + keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789\]+\% brightmagenta/13 + keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789@~\]+ brightmagenta/13 + spellcheck + +context linestart :: \n brightgreen/3 + keyword $+:*$ black/13 green/13 + spellcheck + +context linestart : \n white/5 black/2 + spellcheck + +context :: \n brightgreen/22 + spellcheck