From: nishi Date: Sun, 9 Jun 2024 12:54:43 +0000 (+0000) Subject: add vim syntax file X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3833306e716aecdad80a6d61749855d63d56d9bc;p=dataworks.git add vim syntax file git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@193 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/PKGBUILD b/PKGBUILD index d829a3a..7f37d84 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,9 +5,9 @@ pkgver='0.1.0' pkgdesc='Database System' arch=('i686' 'x86_64') license=('BSD') -pkgrel='29' +pkgrel='30' makedepends=('byacc') -source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=189') +source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=193') sha256sums=('SKIP') build() { diff --git a/dataworks.vim b/dataworks.vim new file mode 100644 index 0000000..7ad7bef --- /dev/null +++ b/dataworks.vim @@ -0,0 +1,24 @@ +" Vim syntax file +" SVN ID: $Id$ +" Language: DataWorks +" Homepage: http://nishi.boats/dataworks +" Maintainer: Nishi + +if exists("b:current_syntax") + finish +endif + +syn match dataworksString /\v"[^"]+"/ display +syn match dataworksString /\v'[^']+'/ display +syn match dataworksNumber /\v[+-]?[0-9]+(\.[0-9]+)?/ display +syn match dataworksComment /\v#.+$/ display +syn region dataworksArgument start='(' end=')' fold transparent +syn match dataworksIdent /\v\c(create_table|use|insert|version)/ display + +hi def link dataworksString String +hi def link dataworksNumber Number +hi def link dataworksComment Comment +hi def link dataworksIdent Identifier + +syn sync minlines=512 +let b:current_syntax = "dataworks" diff --git a/increment-PKGBUILD b/increment-PKGBUILD index 64bb6b7..e85087a 100644 --- a/increment-PKGBUILD +++ b/increment-PKGBUILD @@ -1 +1 @@ -30 +31