From 829ab22723ae8349b79a7928d7cc8e531b410b42 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 28 Dec 2015 14:58:35 +0100 Subject: Add cql support, closes #98 --- syntax/cql.vim | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 syntax/cql.vim (limited to 'syntax') diff --git a/syntax/cql.vim b/syntax/cql.vim new file mode 100644 index 00000000..616f7af3 --- /dev/null +++ b/syntax/cql.vim @@ -0,0 +1,134 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cql') == -1 + +" Vim syntax file +" Language: cql +" Maintainer: Eric Lubow " +syn match cqlNumber "-\=\<[0-9]*\.[0-9]*\>" +syn match cqlNumber "-\=\<[0-9][0-9]*e[+-]\=[0-9]*\>" +syn match cqlNumber "-\=\<[0-9]*\.[0-9]*e[+-]\=[0-9]*\>" +syn match cqlNumber "\<0x[abcdefABCDEF0-9]*\>" + +" Define the default highlighting. +" For version 5.7 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_cql_syn_inits") + if version < 508 + let did_cql_syn_inits = 1 + command -nargs=+ HiLink hi link + else + command -nargs=+ HiLink hi def link + endif + + HiLink cqlKeyword Statement + HiLink cqlSpecial Special + HiLink cqlString String + HiLink cqlNumber Number + HiLink cqlVariable Identifier + HiLink cqlComment Comment + HiLink cqlType Type + HiLink cqlOperator Statement + HiLink cqlConsistency Statement + HiLink cqlColType Type + HiLink cqlPStrategy Type + + delcommand HiLink +endif + +let b:current_syntax = "cql" + + +endif -- cgit v1.2.3