Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9ff86797c2
Fetching contributors…

Cannot retrieve contributors at this time

118 lines (100 sloc) 3.967 kb
if exists("b:current_syntax")
finish
endif
syntax case ignore
" keywords
syn keyword syntaxElementKeyword LEFT RIGHT
syn match eclType /\<UNSIGNED\d*\>/
syn match eclType '\<INTEGER\d*\>'
syn match eclType '\<Q\?STRING\d*\>'
syn match eclType '\<RECORD\>'
syn match eclType '\<BOOLEAN\>'
syn match eclType '\<DATASET\>'
syn match eclConstant '\<LEFT\>'
syn match eclConstant '\<RIGHT\>'
syn match eclBoolean '\<TRUE\>'
syn match eclBoolean '\<FALSE\>'
syn match eclFunction /\<SEQUENTIAL\>/
syn match eclFunction /\<APPLY\>/
syn match eclMacro '\<FUNCTION\>'
syn match eclMacro '\<MACRO\>'
syn match eclMacro '\<FUNCTIONMACRO\>'
syn match eclFunction '\<INDEX\>'
syn match eclFunction '\<BUILDINDEX\>'
syn match eclFunction '\<XML\>\c'
syn match eclFunction '\<XPATH\>\c'
syn match eclFunction '\<XMLTEXT\>\c'
syn match eclFunction '\<NORMALIZE\>\c'
syn match eclFunction '\<WHEN\>\c'
syn match eclFunction '\<PARSE\>\c'
syn match eclFunction '\<OUTPUT\>\c'
syn match eclRepeat '\<TRANSFORM\>\c'
syn match eclRepeat '\<XMLPROJECT\>\c'
syntax match eclStatement '\<SELF\>\c'
syntax match eclDefine '\<EXPORT\>\c'
syntax match eclDefine '\<SHARED\>\c'
syntax match eclIdent '\<end\>\s*;\c'
syntax match eclIdent '\<endmacro\>\s*;\c'
" syn region eclTransformBlock start="\<tranform\>\c" end="\<end\>" contains=ALLBUT,@rubyNotTop fold
syn match eclImport display "^\s*IMPORT\s\+\a\w*\c"
syn match eclImport display "MODULE\c"
syn match eclOperator display "\<+\>\c"
syn match eclOperator display "RETURN\c"
syn keyword eclTodo contained TODO FIXME XXX
:syntax match eclComment /\/\/.*/ contains=eclTodo
syntax region eclComment start="/\*" end="\*/" contains=eclTodo
syntax region eclString start="'" end="'"
syntax region eclRecBlock start=/\<RECORD\>/ end=/\<END\>\s*;/ fold transparent contains=ALL
" syntax region eclModBlock start=/\<MODULE\>/ end=/\<END\>\s*;/ contains=ALL
syntax region eclModBlock start="MODULE" end="END;" contains=ALL
syntax region eclTransBlock start=/\<TRANSFORM\>/ end=/\<END\>\s*;/ contains=ALL
syntax region eclFuncBlock start=/\<FUNCTION\>/ end=/\<END\>\s*;/ contains=ALL
syntax region eclMacroBlock start=/\<MACRO\>/ end=/\<ENDMACRO\>\s*;/ contains=ALL
syntax region eclFuncMacroBlock start=/\<FUNCTIONMACRO\>/ end=/\<ENDMACRO\>\s*;/ contains=ALL
hi def link eclCommentL eclComment
hi def link eclCommentStart eclComment
hi def link eclBoolean Boolean
hi def link eclLabel Label
hi def link eclUserLabel Label
hi def link eclConditional Conditional
hi def link eclFunction Function
hi def link eclRepeat Repeat
hi def link eclCharacter Character
hi def link eclSpecialCharacter SpecialChar
hi def link eclNumber Number
hi def link eclOctal Number
hi def link eclOctalZero PreProc " link this to Error if you want
hi def link eclFloat Float
hi def link eclOctalError eclError
hi def link eclParenError eclError
hi def link eclErrInParen eclError
hi def link eclErrInBracket eclError
hi def link eclCommentError eclError
hi def link eclCommentStartError eclError
hi def link eclSpaceError eclError
hi def link eclSpecialError eclError
hi def link eclCurlyError eclError
hi def link eclOperator Operator
hi def link eclStructure Structure
hi def link eclStorageClass StorageClass
hi def link eclImport Include
hi def link eclPreProc PreProc
hi def link eclMacro Define
hi def link eclDefine Define
" hi def link eclDefine Macro
" hi def link eclIncluded cString
hi def link eclError Error
hi def link eclStatement Statement
hi def link eclCppInWrapper eclCppOutWrapper
hi def link eclCppOutWrapper eclPreCondit
hi def link eclPreConditMatch eclPreCondit
hi def link eclPreCondit PreCondit
hi def link eclType Type
hi def link eclConstant Constant
hi def link eclString String
hi def link eclComment Comment
hi def link eclSpecial Special
hi def link eclTodo Todo
hi def link eclBadContinuation Error
hi def link eclIdent Identifier
let b:current_syntax = "ecl"
Jump to Line
Something went wrong with that request. Please try again.