diff options
Diffstat (limited to 'runtime/syntax/plsql.vim')
-rw-r--r-- | runtime/syntax/plsql.vim | 91 |
1 files changed, 40 insertions, 51 deletions
diff --git a/runtime/syntax/plsql.vim b/runtime/syntax/plsql.vim index 6e513660f..173c22f76 100644 --- a/runtime/syntax/plsql.vim +++ b/runtime/syntax/plsql.vim @@ -9,11 +9,8 @@ " Austin Ziegler (austin at halostatue dot ca) " Added 8i+ features. " -" For version 5.x, clear all syntax items. -" For version 6.x, quit when a syntax file was already loaded. -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -223,54 +220,46 @@ endif syn sync minlines=10 maxlines=100 " Define the default highlighting. -" For version 5.x and earlier, only when not done already. -" For version 5.8 and later, only when an item doesn't have highlighting yet. -if version >= 508 || !exists("did_plsql_syn_inits") - if version < 508 - let did_plsql_syn_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif +" Only when an item doesn't have highlighting yet. +command -nargs=+ HiLink hi def link <args> - HiLink plsqlAttribute Macro - HiLink plsqlBlockError Error - HiLink plsqlBooleanLiteral Boolean - HiLink plsqlCharLiteral Character - HiLink plsqlComment Comment - HiLink plsqlCommentL Comment - HiLink plsqlConditional Conditional - HiLink plsqlError Error - HiLink plsqlErrInBracket Error - HiLink plsqlErrInBlock Error - HiLink plsqlErrInParen Error - HiLink plsqlException Function - HiLink plsqlFloatLiteral Float - HiLink plsqlFunction Function - HiLink plsqlGarbage Error - HiLink plsqlHostIdentifier Label - HiLink plsqlIdentifier Normal - HiLink plsqlIntLiteral Number - HiLink plsqlOperator Operator - HiLink plsqlParen Normal - HiLink plsqlParenError Error - HiLink plsqlSpaceError Error - HiLink plsqlPseudo PreProc - HiLink plsqlKeyword Keyword - HiLink plsqlRepeat Repeat - HiLink plsqlStorage StorageClass - HiLink plsqlSQLKeyword Function - HiLink plsqlStringError Error - HiLink plsqlStringLiteral String - HiLink plsqlCommentString String - HiLink plsqlComment2String String - HiLink plsqlSymbol Normal - HiLink plsqlTrigger Function - HiLink plsqlTypeAttribute StorageClass - HiLink plsqlTodo Todo +HiLink plsqlAttribute Macro +HiLink plsqlBlockError Error +HiLink plsqlBooleanLiteral Boolean +HiLink plsqlCharLiteral Character +HiLink plsqlComment Comment +HiLink plsqlCommentL Comment +HiLink plsqlConditional Conditional +HiLink plsqlError Error +HiLink plsqlErrInBracket Error +HiLink plsqlErrInBlock Error +HiLink plsqlErrInParen Error +HiLink plsqlException Function +HiLink plsqlFloatLiteral Float +HiLink plsqlFunction Function +HiLink plsqlGarbage Error +HiLink plsqlHostIdentifier Label +HiLink plsqlIdentifier Normal +HiLink plsqlIntLiteral Number +HiLink plsqlOperator Operator +HiLink plsqlParen Normal +HiLink plsqlParenError Error +HiLink plsqlSpaceError Error +HiLink plsqlPseudo PreProc +HiLink plsqlKeyword Keyword +HiLink plsqlRepeat Repeat +HiLink plsqlStorage StorageClass +HiLink plsqlSQLKeyword Function +HiLink plsqlStringError Error +HiLink plsqlStringLiteral String +HiLink plsqlCommentString String +HiLink plsqlComment2String String +HiLink plsqlSymbol Normal +HiLink plsqlTrigger Function +HiLink plsqlTypeAttribute StorageClass +HiLink plsqlTodo Todo - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "plsql" |