- ( , q), Notepad ++, XML-, . "Q", - , . :
" Remove all the lines that aren't lists of keywords
" (there doesn't seem to be anything much more complicated
" than that in the definition file)
:g!/<Keywords name=/d
" Convert the lines (fairly poor XML parsing here!)
:%s/\s*<Keywords name="\([^"]\+\)">\([[:alpha:]_ ]\{-}\)<\/Keywords>/syn keyword \1 \2/
, :
syn keyword Words1 case then do while
(Words1 ), , Vim ( , Vim).
, , , :
<Keywords name="Operators">- ! " # $ & * , . ; ? @ \ ^ { | } ~ + < = ></Keywords>
syn match Operators /\<[-!"#$&*,.;?@\\^{|}~+<=>]/
( \<, , [..] ).
:
if exists("b:current_syntax")
finish
endif
:
let b:current_syntax = "q"
.
, , , , , , . :
:help syntax
.
!