annotate runtime/syntax/omnimark.vim @ 1455:ca501ab2fdb3 v7.1.170

updated for version 7.1-170
author vimboss
date Fri, 07 Dec 2007 16:30:42 +0000
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Omnimark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Paul Terray <mailto:terray@4dconcept.fr>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 11 Oct 2000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 set iskeyword=@,48-57,_,128-167,224-235,-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 setlocal iskeyword=@,48-57,_,128-167,224-235,-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword omnimarkKeywords ACTIVATE AGAIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword omnimarkKeywords CATCH CLEAR CLOSE COPY COPY-CLEAR CROSS-TRANSLATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword omnimarkKeywords DEACTIVATE DECLARE DECREMENT DEFINE DISCARD DIVIDE DO DOCUMENT-END DOCUMENT-START DONE DTD-START
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword omnimarkKeywords ELEMENT ELSE ESCAPE EXIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword omnimarkKeywords FAIL FIND FIND-END FIND-START FORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword omnimarkKeywords GROUP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword omnimarkKeywords HALT HALT-EVERYTHING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword omnimarkKeywords IGNORE IMPLIED INCLUDE INCLUDE-END INCLUDE-START INCREMENT INPUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword omnimarkKeywords JOIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword omnimarkKeywords LINE-END LINE-START LOG LOOKAHEAD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword omnimarkKeywords MACRO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword omnimarkKeywords MACRO-END MARKED-SECTION MARKUP-COMMENT MARKUP-ERROR MARKUP-PARSER MASK MATCH MINUS MODULO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword omnimarkKeywords NEW NEWLINE NEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword omnimarkKeywords OPEN OUTPUT OUTPUT-TO OVER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword omnimarkKeywords PROCESS PROCESS-END PROCESS-START PROCESSING-INSTRUCTION PROLOG-END PROLOG-IN-ERROR PUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword omnimarkKeywords REMOVE REOPEN REPEAT RESET RETHROW RETURN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword omnimarkKeywords WHEN WHITE-SPACE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword omnimarkKeywords SAVE SAVE-CLEAR SCAN SELECT SET SGML SGML-COMMENT SGML-DECLARATION-END SGML-DTD SGML-DTDS SGML-ERROR SGML-IN SGML-OUT SGML-PARSE SGML-PARSER SHIFT SUBMIT SUCCEED SUPPRESS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword omnimarkKeywords SYSTEM-CALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword omnimarkKeywords TEST-SYSTEM THROW TO TRANSLATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword omnimarkKeywords UC UL UNLESS UP-TRANSLATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword omnimarkKeywords XML-PARSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword omnimarkCommands ACTIVE AFTER ANCESTOR AND ANOTHER ARG AS ATTACHED ATTRIBUTE ATTRIBUTES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword omnimarkCommands BASE BEFORE BINARY BINARY-INPUT BINARY-MODE BINARY-OUTPUT BREAK-WIDTH BUFFER BY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword omnimarkCommands CASE CHILDREN CLOSED COMPILED-DATE COMPLEMENT CONREF CONTENT CONTEXT-TRANSLATE COUNTER CREATED CREATING CREATOR CURRENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword omnimarkCommands DATA-ATTRIBUTE DATA-ATTRIBUTES DATA-CONTENT DATA-LETTERS DATE DECLARED-CONREF DECLARED-CURRENT DECLARED-DEFAULTED DECLARED-FIXED DECLARED-IMPLIED DECLARED-REQUIRED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword omnimarkCommands DEFAULT-ENTITY DEFAULTED DEFAULTING DELIMITER DIFFERENCE DIRECTORY DOCTYPE DOCUMENT DOCUMENT-ELEMENT DOMAIN-FREE DOWN-TRANSLATE DTD DTD-END DTDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword omnimarkCommands ELEMENTS ELSEWHERE EMPTY ENTITIES ENTITY EPILOG-START EQUAL EXCEPT EXISTS EXTERNAL EXTERNAL-DATA-ENTITY EXTERNAL-ENTITY EXTERNAL-FUNCTION EXTERNAL-OUTPUT-FUNCTION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword omnimarkCommands EXTERNAL-TEXT-ENTITY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword omnimarkCommands FALSE FILE FUNCTION FUNCTION-LIBRARY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword omnimarkCommands GENERAL GLOBAL GREATER-EQUAL GREATER-THAN GROUPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword omnimarkCommands HAS HASNT HERALDED-NAMES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword omnimarkCommands ID ID-CHECKING IDREF IDREFS IN IN-LIBRARY INCLUSION INITIAL INITIAL-SIZE INSERTION-BREAK INSTANCE INTERNAL INVALID-DATA IS ISNT ITEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword omnimarkCommands KEY KEYED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword omnimarkCommands LAST LASTMOST LC LENGTH LESS-EQUAL LESS-THAN LETTERS LIBRARY LITERAL LOCAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword omnimarkCommands MATCHES MIXED MODIFIABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword omnimarkCommands NAME NAME-LETTERS NAMECASE NAMED NAMES NDATA-ENTITY NEGATE NESTED-REFERENTS NMTOKEN NMTOKENS NO NO-DEFAULT-IO NON-CDATA NON-IMPLIED NON-SDATA NOT NOTATION NUMBER-OF NUMBERS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword omnimarkCommands NUTOKEN NUTOKENS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword omnimarkCommands OCCURRENCE OF OPAQUE OPTIONAL OR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword omnimarkCommands PARAMETER PARENT PAST PATTERN PLUS PREPARENT PREVIOUS PROPER PUBLIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword omnimarkCommands READ-ONLY READABLE REFERENT REFERENTS REFERENTS-ALLOWED REFERENTS-DISPLAYED REFERENTS-NOT-ALLOWED REMAINDER REPEATED REPLACEMENT-BREAK REVERSED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword omnimarkCommands SILENT-REFERENT SIZE SKIP SOURCE SPECIFIED STATUS STREAM SUBDOC-ENTITY SUBDOCUMENT SUBDOCUMENTS SUBELEMENT SWITCH SYMBOL SYSTEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword omnimarkCommands TEXT-MODE THIS TIMES TOKEN TRUE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword omnimarkCommands UNANCHORED UNATTACHED UNION USEMAP USING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword omnimarkCommands VALUE VALUED VARIABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword omnimarkCommands WITH WRITABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword omnimarkCommands XML XML-DTD XML-DTDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword omnimarkCommands YES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword omnimarkCommands #ADDITIONAL-INFO #APPINFO #CAPACITY #CHARSET #CLASS #COMMAND-LINE-NAMES #CONSOLE #CURRENT-INPUT #CURRENT-OUTPUT #DATA #DOCTYPE #DOCUMENT #DTD #EMPTY #ERROR #ERROR-CODE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword omnimarkCommands #FILE-NAME #FIRST #GROUP #IMPLIED #ITEM #LANGUAGE-VERSION #LAST #LIBPATH #LIBRARY #LIBVALUE #LINE-NUMBER #MAIN-INPUT #MAIN-OUTPUT #MARKUP-ERROR-COUNT #MARKUP-ERROR-TOTAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword omnimarkCommands #MARKUP-PARSER #MARKUP-WARNING-COUNT #MARKUP-WARNING-TOTAL #MESSAGE #NONE #OUTPUT #PLATFORM-INFO #PROCESS-INPUT #PROCESS-OUTPUT #RECOVERY-INFO #SGML #SGML-ERROR-COUNT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword omnimarkCommands #SGML-ERROR-TOTAL #SGML-WARNING-COUNT #SGML-WARNING-TOTAL #SUPPRESS #SYNTAX #!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword omnimarkPatterns ANY ANY-TEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword omnimarkPatterns BLANK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword omnimarkPatterns CDATA CDATA-ENTITY CONTENT-END CONTENT-START
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword omnimarkPatterns DIGIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword omnimarkPatterns LETTER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword omnimarkPatterns NUMBER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword omnimarkPatterns PCDATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword omnimarkPatterns RCDATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword omnimarkPatterns SDATA SDATA-ENTITY SPACE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword omnimarkPatterns TEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword omnimarkPatterns VALUE-END VALUE-START
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword omnimarkPatterns WORD-END WORD-START
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn region omnimarkComment start=";" end="$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn region omnimarkString matchgroup=Normal start=+'+ end=+'+ skip=+%'+ contains=omnimarkEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn region omnimarkString matchgroup=Normal start=+"+ end=+"+ skip=+%"+ contains=omnimarkEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match omnimarkEscape contained +%.+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match omnimarkEscape contained +%[0-9][0-9]#+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 "syn sync maxlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn sync minlines=2000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 if version >= 508 || !exists("did_omnimark_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 let did_omnimark_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 HiLink omnimarkCommands Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 HiLink omnimarkKeywords Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 HiLink omnimarkString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 HiLink omnimarkPatterns Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 " HiLink omnimarkNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 HiLink omnimarkComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 HiLink omnimarkEscape Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 let b:current_syntax = "omnimark"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " vim: ts=8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123